分类: LINUX
2009-08-10 15:48:24
MiniGUI-1.3.3在PC上开发环境的建立
step 1: 安装库文件
#tar zxvf libminigui-1.3.3.tar.gz
#cd libminigui-1.3.3
#./configure //采用默认的Thread模式,移植到实验箱上时再用Lite模式。
#make
#make install
step 2: 安装资源文件
#tar zxvf minigui-res-1.3.3.tar.gz
#cd minigui-res-1.3.3
#make install
step 3:
修改/etc/ld.so.conf文件,里面加上一行/usr/local/lib,然后执行#ldconfig
step 4:
修改/usr/local/etc/MiniGUI.cfg
gal_engine=qvfb
ial_engine=qvfb
[qvfb]
default mode = 640 x 480-16pp
step 5:
安装qvfb-1.0.tar.gz,去MiniGUI网站上下载,用高版本的Qt带的qvfb会出错。
#./configure
#make
#make install
step 6: 安装例子程序mg-samples-1.3.0.tar.gz
#tar zxvf mg-samples-1.3.0.tar.gz
#cd mg-samples-1.3.1 //解压后就自动变成1.3.1了!
#./configure
#make
#cd src
step 7: 测试
#qvfb &
先对qvfb进行设置,File/configure,设置为640 x 480 VGA,16bit。若设置与/usr/local/etc/MiniGUI.cfg不相符,会出现如下错误:
NEWGAL: set video mode failure.
GDI: can not initialize graphics engine!
#./helloworld
step 8: 在framebuffer下运行MiniGUI
修改/usr/local/etc/MiniGUI.cfg
gal_engine=fbcon
ial_engine=console
[fbcon]
default mode = 800 x 600-16bpp //对应framebuffer vga=0x314 (800 x 600)