MiniGUI3.0.12及组件下载地址/downloads/index.html
libmgplus-1.2.4下载地址download.csdn/download/yong_f/4062807
1. 需要下载的组件
libminigui-gpl-3_0_
mg-samples-3_0_
freetype-1_3_
jpegsrc_
libpng-1_2_
minigui-res-be-3_0_
zlib-1_2_
qvfb2-2.0
libmgplus-1.2.4(可以在csdn上下载到)


(qvfb所需要的包)
libqt3-mt
libqt3-mt-dev
alien
qt-devel-3.3.8-4.fc7.i386.rpm


2.安装各组件
<1>libminigui-gpl-3_0_(库)
./configure --prefix=/usr/local --enable-qvfbial --disable-splash --disable-screensaver
sudo make
sudo make install


<2>minigui-res-be-3_0_(资源包)
.
/configure --prefix=/usr/local
sudo make
sudo make install


<3>freetype-1_3_
./configure --prefix=/usr/local
sudo make
sudo make install
(
在安装时会有ftdump.c的预处理标识符错误,修改./test/ftdump.c里的
Print_Mem( memory_footprint.##field, string )
改为 : Print_Mem( memory_footprint.field, string ) 
#define FOOTPRINT( field ) Save_Memory( &memory_footprint.##field )
修改为:#define FOOTPRINT( field ) Save_Memory( &memory_footprint.field )
)



<4>安装PNG库
./configure --prefix=/usr/local
sudo make
sudo make install


<5>安装JPEG库
./configure --prefix=/usr/local --enable-shared
sudo make
sudo make install


<6>安装zlib库
./configure --prefix=/usr/local
sudo make
sudo make install


<7>libmgplus-1.2.4
./configure --prefix=/usr/local
sudo make
sudo make install
将/usr/local/lib加入到.bashrc中


<8>安装qvfb2
(因为需要qt-3.3作支持,所以需要先安libqt3-mt,libqt3-mt-dev,下载qt-devel-3.3.8-4.fc7.i38
6.rpm,然后用alien转为deb,再用dpkg -i --force-overwrite 来安装此包)
sudo apt-get install libqt3-mt
sudo apt-get install libqt3-mt-dev
sudo apt-get install alien
sudo alien qt-devel-3.3.8-4.fc7.i386.rpm
dpkg -i --force-overwrite qt-devel-3.3.8-4.fc7.i386.deb
(开始安qvfb)
cd qvfb2-2.0
./configure --with-qt-includes=/usr/lib/qt-3.3/include --with-qt-libraries=/usr/lib/qt-3.3/lib --with-qt-dir=/usr/lib/qt-3.3
sudo make
sudo make install
(qvfb2与1不同,没有文件输入是不会显示出框图的)


linux系统安装步骤csdn
<9>修改MiniGUI.cfg
[system]
# GAL engine and default options
gal_engine=pc_xvfb(修改此处)
defaultmode=640x480-16bpp(修改此处)


# IAL engine
ial_engine=qvfb
mdev=/dev/input/mice
mtype=IMPS2


[fbcon]
defaultmode=1024x768-16bpp



[qvfb]
defaultmode=640x480-16bpp
window_caption=QVFB-for-MiniGUI-3.0
exec_file=/usr/local/bin/qvfb
display=0


#{{ifdef _MGGAL_PCXVFB
[pc_xvfb]
defaultmode=640x480-16bpp
window_caption=XVFB-for-MiniGUI-3.0-(Gtk-Version)
exec_file=/usr/local/bin/qvfb2(修改此处)
display=0
#}}


<10>mg-samples-3.0.12 并运行
./configure --prefix=/usr/local
sudo make
sudo make install
./same/same

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。