Preparation:
1. QT source package qt-everywhere-opensource-src-4.7.0.tar.gz
2. Cross Compiler arm-eabi-4.4.0.tar.bz2
3. Touch Screen verification tool: tslib-1.4.tar.gz
4. Development Board OMAP
Compile and install:
1. First install the cross-Editor arm-eabi-4.4.0.tar.bz2 (this is easy, not to mention)
Install tslib:
Run the CD tslib command to enter the current directory of tslib. Then run the following command:
[Email protected]:/ARM/Qt # cd tslib/
[Email protected]:/ARM/Qt # echo "ac_cv_func_malloc_0_nonnull = yes"> arm-linux.cache
[Email protected]:/ARM/Qt #./configure -- Host = arm-None-Linux-gnueabi -- prefix =/usr/local/tslib -- cache-file = arm-none-linux-gnueabi.cache
[Email protected]:/ARM/Qt # Make
[Email protected]:/ARM/Qt # make install
After the operation is successful, you can generate tslib under/usr/local/. After Entering tslib, You can see four folders, Bin include lib etc. We will ignore it for the time being and will only use these folders during the next porting process.
Here, I package the files in tslib to/usr/local/tslib of the Development Board.
To compile and install QT for ARM, first configure the following:
[Email protected]:/ARM/QT/qt-everywhere-opensource-src-4.7.0 # Vim a. Sh
1 #! /Bin/sh
2
3 # For arm
4. /configure-Prefix/opt/embedsky/qt-4.7-arm-Embedded ARM-release-opensource-fast-no-Accessibility-no-scripttools-no-MMX-no-multimedia-no-SVG- no-3dnow-no-SSE-no-sse2-silent-QT-libpng-QT-libjpeg-no-libmng-no-LibTIFF-no-multimedia-make libs-nomake tools-nomake examples-nomake docs-nomake demo-no-Nis-no-cups-no-iconv-no-signature-no-OpenSSL-xplatform qws/Linux-arm-gnueabi-G ++-l ittle -Endian-QT-FreeType-Depths 16, 18-QT-GFX-linuxfb-no-GFX-transformed-no-GFX-multiscreen-no-GFX-VNC-no-GFX-qvfb- qt-KBD-linuxinput-no-glib-QT-mouse-tslib-I/usr/local/tslib/include-L/usr/lo cal/tslib/lib-confirm-license "[email protected]"
The text in red must be changed to the corresponding directory-I/-L to specify the path of the tslib compiled earlier.
# Make
# Make install
/* Files such as libraries and fonts will be installed to the/opt/embedsky/qt-4.7-arm directory. */
Copy the following files under the/opt/QtEmbedded-4.7.3/lib directory to the root file system/usr/lib directory:
# Cp-A/opt/QtEmbedded-4.7.3/lib.tar.gz rootfs/usr/lib
(Here I package lib to the Development Board/usr/lib /)
Step 3:
Create a directory in the root file system
# Mkdir/usr/lib/Fonts
Copy the font unifont_160_50.qpf under the/ARM/QT/qt-everywhere-opensource-src-4.7.0/lib/fonts directory to the directory corresponding to the Development Board
# Cp/ARM/QT/qt-everywhere-opensource-src-4.7.0/lib/Fonts/Unifont_160_50.qpf/usr/local
Step 4:
Make QT support JPG Images
CP/ARM/QT/qt-everywhere-opensource-src-4.7.0/plugins/imageformats/*/usr/lib/
Add app. addlibrarypath ("/usr/lib/") to the main program of the application /");