Minigui安裝
參考http://linux.chinaunix.net/bbs/thread-1012766-1-1.html
minigui下載
首先要做好準(zhǔn)備工作,去http://www.minigui.org/res.shtml下載一下壓縮包:
開發(fā)庫(kù):libminigui-1.6.10.tar.gz
資源文件:minigui-res-1.6.10.tar.gz
示例程序:mg-samples-1.6.10.tar.gz
模擬器:qvfb-1.1.tar.gz
我使用的是redhat企業(yè)版5
安裝minigui-res-1.6.tar.gz:
MiniGUI 所使用的資源, 包括基本字體、圖標(biāo)、位圖和鼠標(biāo)光標(biāo)。
安裝命令:
[root@localhost]#tar -zxf minigui-res-1.6.10.tar.gz
[root@localhost]#cd minigui-res-1.6.10
[root@localhost]#make install
安裝libminigui-1.6.10.tar.gz:
MiniGUI 函數(shù)庫(kù)源代碼。
解壓命令:
[root@localhost]#tar -zxf libminigui-1.6.10.tar.gz
[root@localhost]#cd libminigui-1.6.10
[root@localhost]#./configure
[root@localhost]#make
[root@localhost]#make install
把libminigui加入庫(kù)搜索路徑:
在/etc/ld.so.conf 文件中添加 /usr/local/lib
可以使用命令完成:
[root@localhost]#echo /usr/local/lib > /etc/ld.so.conf
刷新系統(tǒng)共享庫(kù)緩存,將libminigui加載上,可以使用命令
[root@localhost]#ldconfig
這個(gè)命令執(zhí)行時(shí)要花十多秒,耐心等待。當(dāng)然不使用刷新命令重啟系統(tǒng)也可以。
安裝qvfb
把下載回來的qvfb-1.0.tar.gz解壓安裝:
[root@localhost]# tar zxf qvfb-1.1.tar.gz
[root@localhost]# cd qvfb-1.1
[root@localhost]# ./configure
[root@localhost]# make
[root@localhost]# make install
編譯程序Phone
我的Phone目錄是/geng/minigui/Phone
[root@localhost]#cd /geng/minigui/Phone
[root@localhost]#make
運(yùn)行程序Phone
a) 先運(yùn)行qvfb
[root@localhost]# qvfb &
運(yùn)行起來后在qvfb中設(shè)置虛擬顯示器分辨率:File-->Configure,
b) 再運(yùn)行自己的程序myPhone
[root@localhost]#cd /geng/minigui/Phone
[root@localhost]#./myPhone
好了,看到效果了吧。 |