Step 1: Install the library file
# Tar zxvf libminigui-1.3.3.tar.gz
# Cd libminigui-1.3.3
#./Configure // use the default thread mode, and use lite mode when porting to the experiment box.
# Make
# Make install
Step 2: Install the resource file
# Tar zxvf minigui-res-1.3.3.tar.gz
# Cd minigui-res-1.3.3
# Make install
Step 3:
Modify the/etc/lD. So. conf file, add a line/usr/local/lib to it, and then execute # ldconfig
Step 4:
Modify/usr/local/etc/MiniGUI. cfg
Gal_engine = qvfb
Ial_engine = qvfb
[Qvfb]
Default Mode = 640 x 480-16pp
Step 5:
Install qvfb-1.0.tar.gz and download it from the MiniGUI website. An error occurs when qvfb with QT of a higher version is used.
#./Configure
# Make
# Make install
Step 6: Install the *** samples-1.3.0.tar.gz *** Program
# Tar zxvf mg-samples-1.3.0.tar.gz
# Cd mg-samples-1.3.1 // automatically becomes 1.3.1 after decompression!
#./Configure
# Make
# Cd SRC
Step 7: Test
# Qvfb &
Set qvfb first, file/configure, to 640x480 VGA, 16 bit. If the setting does not match/usr/local/etc/MiniGUI. cfg, the following error occurs:
Newgal: Set video mode failure.
GDI: Can not initialize graphics engine!
#./Helloworld
Step 8: Run MiniGUI in framebuffer
Modify/usr/local/etc/MiniGUI. cfg
Gal_engine = fbcon
Ial_engine = console
[Fbcon]
Default Mode = 800 x 600-16bpp // corresponding framebuffer VGA = 0x314 (800x600)
Modify Linux configurations
# Vi/etc/inittab
Change the default value of "ID: 5: initdefault:" In line 1 from "5" to "3", that is, change the default GUI to the character interface.
# Vi/boot/GRUB/grub. conf
Change 15 lines to kernel/vmlinz-2.4.20-8 Ro root = label =/VGA = 0x314 to set screen resolution
Restart the machine, enter the character interface, and then run the program.
The above code package can be found in my resources. The resource is called "minigui1.3 installation package"
Http: // xiaozhi_su.download.csdn.net/