Porting miniGUI 1.3.3 to ubuntu 10.04

Source: Internet
Author: User


Ubuntu 10.04 port miniGUI 1.3.3 first, you need to download the MiniGUI package: http://www.minigui.com/download/libminigui-1.3.3.tar.gz http://www.minigui.com/download/minigui-res-1.3.3.tar.gz these two package download needs you registered on www.minigui.com can download, free registration, click here for some small example www.2cto.com to create a new working directory [user] # mkdir-p/home/Under/home/ Minigui unlocks the libminigui-1.3.3.tar.gz [user] # tar zxf libminigui-1.3.3.tar.gz [user] # tar zxf minigui-res-1.3.3.tar.gz to compile libminigui, which is the library file necessary for minigui to run, the compilation must be successful [user] # cd libminigui-1.3.3 [user] #. /configure // The simplest compilation method, which can be configured by itself. The default Thread mode instead of Lite mode is used here, because this method is most convenient to use on PC machines, move the back to the board and change to Lite mode to www.2cto.com. Pay attention to the output on the screen, especially the following checks for FrameBuffer console support... yeschecking for pthread library... Yeschecking for TT_FreeType_Version in-lttf... yeschecking for T1_InitLib in-lt1... nochecking for each _std_error in-ljpeg... yeschecking for png_check_sig in-lpng... yes.-lttf-lpng must be yes. Otherwise, your program will be faulty. If it is not yes, the corresponding library may not be installed. Note: If the library is correctly installed, it is still displayed as no, for example, checking for png_check_sig in-lpng... no solution: Go to the configure file through vi, find png, and modify if test "x $ build_png_support" in the following bold area "! = "Xno"; then echo "$ as_me: $ LINENO: checking for png_check_sig in-lpng"> & 5 echo $ ECHO_N "checking for png_check_sig in-lpng... $ ECHO_C "> & 6if test" $ {ac_cv_lib_png_png_check_sig + set} "= set; then echo $ ECHO_N" (cached) $ ECHO_C "> & 6 else www.2cto.com ac_check_lib_save_LIBS = $ LIBS # I modified the below line # LIBS ="-lpng-lm $ LIBS "LIBS ="-lpng-lm-lz $ LIBS"
Among them, the ttf Library supports TrueType fonts, the png Library supports png images, and the jpeg Library supports jpeng graphics, both of which are required in MiniGui, these two are also required for cross-compiling at the end of the Board. Otherwise, your program cannot run. If yes is passed in the./configure result, the following command is compiled and executed. # Make install if no is displayed in the./configure result, you need to manually add these libraries: Installing zlib library zlib on www.2cto.com is the basis for compiling later libraries. First install this library. Installation Package: zlib-1.2.3.tar.gz # tar zxf zlib-1.2.3.tar.gz # cd zlib-1.2.3 #./configure # make install freetype library unzip steps are consistent. The following errors may occur during make: 1. Error 1: X11/Xlib. h: No such file or directory solution: sudo apt-get install libx11-dev www.2cto.com 2. Error 2: ftdump. c: 172: 1: pasting ". "and" glyph_object "does not give a valid preprocessing tokenftdump. c: 182: 1: pasting ". "and" first_instance "does not give a valid preprocessing tokenftdump. c: 191: 1: pasting ". "and" second_instance "does not give a valid preprocessing tokenftdump. c: 201: 1: Pasting ". "and" face_object "does not give a valid preprocessing tokenftdump. c: 202: 1: pasting ". "and" glyph_object "does not give a valid preprocessing tokenftdump. c: 203: 1: pasting ". "and" second_instance "does not give a valid preprocessing tokenftdump. c: 863: 1: pasting ". "and" initial_overhead "does not give a valid preprocessing tokenftdump. c: 882: 1: pasting ". "and" face_object "does not g Ive a valid preprocessing tokenmake [1]: *** [ftdump. o] Error 1 make [1]: Leaving directory '/software/freetype-1.3.1/test' make: *** [tttest] Error 2 solution: Modify Makefile: 1. remove tttest2. FROM all: ttlib tttest ttpo to delete www.2cto.com install: cd $ (FTLIBDIR); $ (MAKE)-f $ (MAKEFILE) install cd $ (FTTESTDIR); $ (MAKE) -f $ (MAKEFILE) install cd $ (FTPODIR); $ (MAKE) cd $ (FTTESTDIR) in uninstall; $ (MAKE)-f $ (MAKEFILE) ins Tall install png Library installation package: the libpng-1.0.10rc1.tar.gzLibpng does not provide a valid configure script, so I had to manually change the Makefile file # cp scripts/makefile. linux Makefile // copy a makefile under Scripts and manually modify it. In ubuntu, you do not need to modify # make install www.2cto.com to install the jpeg library installation package: jpegsrc.v6b.tar.gz # cd jpeg-6b #. /configure-perfix =/usr/local-enable-shared # make install reinstall libminigui. After installing all the supported libraries, re-enter the libminigui folder, after running the configure command, yes # should be displayed for all supported libraries installed #. /c Onfigurechecking for FrameBuffer console support... yeschecking for pthread library... yeschecking for TT_FreeType_Version in-lttf... yeschecking for T1_InitLib in-lt1... nochecking for each _std_error in-ljpeg... yeschecking for png_check_sig in-lpng... yes # make may encounter the following errors during compilation ...... Freetype. c: 47: 41: freetype1/freetype. h: No such file or directory freetype. c: 48: 40: freetype1/freetype/ftxkern. h: No such file or directory freetype. c: 49: 41: freetype1/freetype/ftnameid. h: No such file or directory freetype. c: 50: 40: freetype1/freetype/ftxcmap. h: No such file or directory freetype. c: 51: 41: freetype1/freetype/ftxwidth. h: No such file or directory ...... Www.2cto.com make [3]: *** [freetype. lo] Error 1 make [3]: Leaving directory '/root/Minigui/libminigui-1.3.3/src/font 'make [2]: * ** [install-recursive] Error 1 make [2]: Leaving directory '/root/Minigui/libminigui-1.3.3/src/font 'make [1]: * ** [install-recursive] Error 1 make [1]: Leaving directory '/root/Minigui/libminigui-1.3.3/src' make: * ** [install-recursive] Error 1 solution: freetype is used to support font display, such as TrueT. Ype. The version is different. This error indicates that the library file cannot be found. The desert lone wolf article mentioned a freetype software. First install it. I installed it in/usr/local/include. Find them and make them look like "freetype1/freetype. h", copy them to/usr/include, and execute make clean and then make. Specific Method: # cd/home/minigui/freetype-1.3.1 # mkdir-p/opt/cross/libttf/extend // create another directory by yourself # cp. /lib /*. /lib/arch/ansi/*/opt/cross/libttf // copy useful items # cp. /lib/extend/*/opt/cross/libttf/extend // copy the files in the extend directory. Do not use the-r option for the cp command, because some useless things will be copied out and copied, now I have manually compiled www.2cto.com # cd/opt/cross/libttf //, which is a newly created directory # gcc-c-fPIC-O2 freetype. c // just compile this one. c file, because it includes all other. c file. You can view its content by yourself # gcc-c -FPIC-O2-I. /extend /*. c // put all. compile all c files. Note that-I. /is capitalized I # gcc -- shared-o libttf. so *. o // generate the final dynamic link library. OK # mkdir-p/usr/include/freetype1/freetype # cp *. h extend /*. h/usr/include/freetype1/freetype # cp libttf. so/usr/local/lib should be correctly compiled after this problem is solved. Then install the compilation result # make install minigui resource installation package: minigui-res-1.3.3.tar.gz # cd/home/minigui/minigui-res-1.3.3 # make install related configuration settings first, modify your/etc/ld. so. conf file, add a new/usr/local/lib line to it, and then execute www.2cto.com # ldconfig # vi/usr/local/etc/MiniGUI. cfg find [system] # GAL engine # gal_engine = fbcongal_engine = qvfb // here modify # IAL engine # ial_engine = consoleial_engine = qvfb // modify mdev =/dev/mousemtype = IMPS2 [fbcon] defaultmode = 102 4x768-16bpp [qvfb] defaultmode = 640x480-16bpp // modify display = 0 qvfb here. If qvfb is not installed in the system, you need to install qvfb, # cd/home/minigui1.3.3-arm/qvfb-1.0 #. /configure www.2cto.com # make install Note: during compilation, there may be errors in cheching for Qt... configure: error: Qt (> = Qt 3.0.3) (headers and libraries) not found. please check your installation! Work und: install the libqt3-mt-dev package, execute the command apt-get install libqt3-mt-dev, or locate the package for installation. (Then do not install the libqt3-headers libqt3-mt package to try), in addition to the execution of./configure can be added with the parameter LDFLAGS and CPPFLAGS specify the library file and header file directory. As. /configure usage can be found in. /configure -- help query -- with-qt-dir =/usr/lib/qt-3.3or www.2cto.com -- with-qt-Primary des =/usr/lib/qt-3.3/include -- with-qt-libraries =/usr/lib/qt-3.3/lib test mg-samples-1.3.0.tar.gz this package is some examples, try now: # tar zxf mg-samples-1.3.0.tar.gz #. /configure # make # cd src check whether the executable file has been compiled in the src directory. Run the Cd sr www.2cto.com example program: [user] # qvfb & // in the graphic interface, select "File Transfer Configure limit 640x480 VGA 16bit" in qvfb, this looks comfortable [user] # cd/home/minigui1.3.3-arm/mg-samples-1.3.0/src [user] #. the/helloword effect is shown in:

OK. Now you can see the execution result in qvfb. Remember: you must first run qvfb, set qvfb, and then run your program, qvfb needs to be reset every time it is restarted.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.