miniGUI 3.0.12在Ubuntu 12.04下的配置

时间:2015-08-05 14:52:40   收藏:0   阅读:1905

从miniGUI官网http://www.minigui.org/en/download/下载如下文件:

  • 工具及依赖库文件:

qvfb2-2.0.tar.gz

gvfb-1.0.0.tar.gz

zlib-1.2.2.tar.gz

libpng-1.2.37.tar.gz

jpegsrc.v7.tar.gz

freetype-2.3.9-fm20100818.tar.gz


  • minigui文件

libminigui-gpl-3.0.12.tar.gz

minigui-res-be-3.0.12.tar.gz

mg-samples-3.0.12.tar.gz


  • minigui组件文件

libmgi-2.0.4.tar.gz

libmgplus-1.2.4.tar.gz

libmg3d-1.0.2.tar.gz

libmgutils-1.0.4.tar.gz

libmgp-1.2.2.tar.gz

libmgncs-1.0.8.tar.gz

libmgeff-1.0.0.tar.gz


建一个目录minigui,把上述文件都下载到该目录下。


接下来,


tar zxvf zlib-1.2.2.tar.gz

进入目录

./configure

make

sudo make install

tar zxvf  jpegsrc.v7.tar.gz

./configure 

make

sudo make install

tar zxvf   libpng-1.2.37.tar.gz

./configure  --enable-shared

make

sudo make install


tar zxvf  freetype-2.3.9-fm20100818.tar.gz

./configure 

make

sudo make install

tar zxvf qvfb2-2.0.tar.gz

进入目录,配置

./configure

出现如下错误:

configure: error: Qt (>= Qt 3.2 and < 4.0) (library qt-mt) not found.
解决: sudo apt-get install
libqt3-mt-dev libqt3-headers
./configure –with-qt-includes=/usr/include/qt3 –with-qt-lilbraries=/usr/lib/qt3

Can’t find X includes. Please check your installation and add the
correct paths!
解决: sudo apt-get install xorg-dev

mgplus/mgplus.h: No such file or directory #include mgplus/mgplus.h
解决: 注释掉此头文件

error: C++ preprocessor “/lib/cpp” fails sanity check See `config.log’
for more details.
解决: sudo apt-get install build-essential

没有错误后,

make

sudo make install

tar zxvf minigui-res-be-3.0.12.tar.gz

./configure

sudo make install

tar zxvf  libminigui-gpl-3.0.12.tar.gz

./configure

make

sudo make install

在/etc/ld.so.conf.d新建一个文件minigui.conf,在其中输入/usr/local/lib

然后刷新动态库:

sudo ldconfig

tar zxvf  libmgplus-1.2.4.tar.gz

./configure  

make

sudo make install

tar zxvf  libmgi-2.0.4.tar.gz

./configure 

make

sudo make install
tar zxvf  libmg3d-1.0.2.tar.gz

./configure  

make

sudo make install
tar zxvf  libmgutils-1.0.4.tar.gz

 ./configure 

make

sudo make install
tar zxvf  libmgp-1.2.2.tar.gz

 ./configure 

make

sudo make install
tar zxvf  libmgncs-1.0.8.tar.gz

 ./configure 

make

sudo make install

tar zxvf mg-samples-3.0.12.tar.gz

./configure 

make

最后,运行minigui sample

修改MiniGUI.cfg( /usr/local/etc/MiniGUI.cfg):
将第44行的gvfb改为qvfb2


运行demo程序

./mg-samples-3.0.12/same/same

start-qvfb :/usr/local/bin/qvfb2 pcxvfb 13997 XVFB-for-MiniGUI-3.0-(Gtk-Version) 800x600-16bpp

成功!

版权声明:本文为博主原创文章,未经博主允许不得转载。

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!