MiniGUI3.0 on linux 编译

Howto Install MiniGUI 3.0 on Linux PC

Posted by admin on August 9, 2012

Before installation

Please download the following tarballs from the download area of this site:

  • libminigui-gpl-3.0.12.tar.gz: the source of MiniGUI core library.
  • minigui-res-be-3.0.12.tar.gz: the resource used by MiniGUI, including basic fonts, icons, bitmaps, cursors, and imetables.
  • mg-samples-3.0.12.tar.gz: the samples for MiniGUI Version 3.0.x.

MiniGUI can run on Linux console with FrameBuffer activated. If you video chip is VESA 2.0 compliant (most video chips support VESA 2.0), you can active Linux kernel's VESA FrameBuffer by add a boot option 'vga=0x0317'. This option will use VESA BIOS to enter a 1024x768-16bpp display mode. Please make sure that your display can support this mode.

You can also run MiniGUI on a virtual Frame Buffer, which runs on X Windows. Currently, MiniGUI can run on Qt Virtual Frame Buffer (QVFB) or GVFB (Gtk-based virtual Frame Buffer). Please download qvfb2 and/or gvfb tarball from the download zone of this site and install qvfb2 or gvfb first.

Installing resource files of MiniGUI

We must install resource files of MiniGUI first. Please follow the steps below to do it:

1) Use `tar' to extract minigui-res-be-3.0.12.tar.gz. You can use            the following command:             $ tar zxf minigui-res-be-3.0.12.tar.gz          2) Change to the new directory and run `configure' and `make install' as a super user:
           $ ./configure
           $ sudo make install 

Configure and compile MiniGUI

MiniGUI uses `automake' and `autoconf', so configuration and compilation of MiniGUI are very easy:

        1) Use `tar' to extract `libminigui-gpl-3.0.12.tar.gz' to a new directory:             $ tar zxf libminigui-gpl-3.0.12.tar.gz          2) Change to the new directory and run `./configure':             $ ./configure          3) Run the following commands to compile and install MiniGUI:             $ make; sudo make install;          4) By default, the libraries of MiniGUI will be installed in            `/usr/local/lib'. You should make sure that this directory            is listed in `/etc/ld.so.conf' file. And after having installed            them, you should run the following command to update the cache            of shared library system:             $ sudo ldconfig          5) If you want to specify which features MiniGUI provides, you            can run             $ ./configure --help             to see the complete configuration options listed, then disable or            enable some features by using command line switches. For example,            if you do not want MiniGUI to load JPEG pictures via the function            LoadBitmap, you can use             $ ./configure --disable-jpgsupport          6) Note that some features of MiniGUI depend on other libraries.            Please make sure that you have installed them.  

Run samples of MiniGUI

Before running the sample programs, you should extract the mg-samples-3.0.12.tar.gz and compile it:

        1) Extract the tarball to a new directory by using `tar' command.          2) Run `./configure' and `make' to compile the demos.              $ ./configure             $ make          3) Try to run the samples. For example, you can go to            `mg-samples-3.0.12/same/' to run `same':              $ cd same             $ ./same
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值