MiniGUI3.0.12绝对正确安装

更新时间:2023-12-05 07:53:01 阅读量: 教育文库 文档下载

说明:文章内容仅供预览,部分内容可能不全。下载后的文档,内容与下面显示的完全一致。下载之前请确认下面内容是否您想要的,是否完整无缺。

MiniGUI3.0.12及组件下载地址http://www.minigui.org/downloads/index.html libmgplus-1.2.4下载地址http://download.csdn.net/download/yong_f/4062807 1. 需要下载的组件

libminigui-gpl-3_0_12.tar.gz mg-samples-3_0_12.tar.gz freetype-1_3_1.tar.gz jpegsrc_v7.tar.gz libpng-1_2_37.tar.gz

minigui-res-be-3_0_12.tar.gz zlib-1_2_2.tar.gz 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_12.tar.gz(库)

./configure --prefix=/usr/local –enable-procs --enable-videoqvfb --enable-qvfbial --disable-splash --disable-screensaver sudo make

sudo make install

(gui默认安装的是gui-theads模式,加--enable-procs编译为MiniGUI-processes 模式。MiniGUI3.0.12版本默认情况下是不开QVFB图像引擎与QVFB输入引擎的,要加--enable-videoqvfb --enable-qvfbial配置项,不然会出现NEWGAL: Does not find matched engine: qvfb.与InitGUI (step 4): Can not get graphics engine information!的情况)

<2> sudo vim /etc/ld.so.conf 追加: include /usr/local/lib

然后使用如下命令刷新 sudo ldconfig

<3>minigui-res-be-3_0_12.tar.gz(资源包) ./configure --prefix=/usr/local sudo make

sudo make install

<4>freetype-1_3_1.tar.gz ./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 ) )

<5>安装PNG库

./configure --prefix=/usr/local sudo make

sudo make install

<6>安装JPEG库

./configure --prefix=/usr/local --enable-shared sudo make

sudo make install

<7>安装zlib库

./configure --prefix=/usr/local sudo make

sudo make install

<8>libmgplus-1.2.4

./configure --prefix=/usr/local sudo make

sudo make install

<9>将/usr/local/lib加入到.bashrc中 : sudo vim /.bashrc

<10>安装qvfb2

source .bashrc

(因为需要qt-3.3作支持,所以需要先安libqt3-mt,libqt3-mt-dev,下载qt-devel-3.3.8-4.fc7.i386.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不同,没有文件输入是不会显示出框图的)

<10>修改MiniGUI.cfg (sudo vim /usr/local/etc/MiniGUI.cfg) /*下文中修改处是对的,照着修改*/ [system]

# GAL engine and default options gal_engine=qvfb(修改此处)

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/qvfb2 (修改此处) 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

<11> 命令 qvfb & (在出现的窗口中点击configure,选640*480VGA,16PP) ./mginit/mginit & ./helloworld

完成!!!!!

<12>如果出现错误:

1)InitGUI (step 3): There is already an instance of 'mginit'! 解决方法:sudo rm /var/tmp/mgini 2)LoadSharedResource: File exists

InitGUI (step 8): Can not load shared resource! 段错误

解决办法:ipcs -st

删除列出的信号量:ipcrm -s 信号量id

本文来源:https://www.bwwdw.com/article/55at.html

Top