运行环境:Ubuntu10.04
1.下载相关的文件,地址:http://www.minigui.org/zhcn/download/
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
2 安装QVFB或GVFB,QVFB的安装在这里:http://www.cnblogs.com/sankye/archive/2012/10/29/2745332.html
MINIGUI3.0默认是GVFB的配置,我直接装的GVFB:
(a)通过apt-get安装:libgtk2.0-dev cmake
(b)解压gvfb-1_0_0.tar.gz
(c)切换到gvfb-1_0_0目录
(d)运行以下命令:
cmake ./
make
sudo make install
注:如果cmake执行出错,先安装g++:
sudo apt-get install g++
3安装各组件
基本都是解压,./configure ,make ,make install
4修改配置文件/usr/local/etc/MiniGUI.cfg
默认的配置文件是不支持中文字体的
我的修改的配置文件如下:
[systemfont]
font_number=10
font0=rbf-FixedSys-rrncnn-8-16-ISO8859-1
font1=*-FixedSys-rrncnn-*-16-ISO8859-1
font2=*-Courier-rrncnn-*-16-ISO8859-1
font3=*-SansSerif-rrncnn-*-16-ISO8859-1
font4=*-System-rrncnn-*-16-ISO8859-1
font5=*-fixed-rrncnn-*-16-GB2312
font6=*-Courier-rrncnn-*-16-GB2312
font7=*-SansSerif-rrncnn-*-16-GB2312
font8=*-Times-rrncnn-*-16-GB2312
font9=*-Helvetica-rrncnn-*-16-GB2312
default=0
wchar_def=4
fixed=1
caption=4
menu=2
control=3
[rawbitmapfonts]
font_number=3
name0=rbf-fixed-rrncnn-12-12-GB2312-0
fontfile0=/usr/local/share/minigui/res/font/song-12-gb2312.bin
name1=rbf-fixed-rrncnn-16-16-GB2312-0
fontfile1=/usr/local/share/minigui/res/font/song-16-gb2312.bin
name2=rbf-fixed-rrncnn-6-12-ISO8859-1
fontfile2=/usr/local/share/minigui/res/font/6x12-iso8859-1.bin
[varbitmapfonts]
font_number=3
name0=vbf-Courier-rrncnn-10-15-ISO8859-1
fontfile0=/usr/local/share/minigui/res/font/Courier-rr-10-15.vbf
name1=vbf-Helvetica-rrncnn-15-16-ISO8859-1
fontfile1=/usr/local/share/minigui/res/font/Helvetica-rr-15-16.vbf
name2=vbf-Times-rrncnn-13-15-ISO8859-1
fontfile2=/usr/local/share/minigui/res/font/Times-rr-13-15.vbf
5,测试代码,通过!!