The target machine is mini2440.
1. Download the source code of QT embedded 4.7.2 and obtain it from the http://qt.nokia.com.
2. Extract the source code package and enter the corresponding directory. Configure the package first. You can write a configuration file to run it for automatic configuration.
For example, compile the automatic configuration file AutoConfig. Sh with the following content:
#! /Bin/bash
./Configure/
-Prefix/usr/local/qt-arm9-4.7.2/
-Opensource/
-Confirm-license/
-Release-shared/
-Embedded ARM/
-Xplatform qws/Linux-arm-G ++/
-Depths 16, 18, 24/
-Fast/
-Optimized-qmake/
-PCH/
-QT-SQL-SQLite/
-QT-libjpeg/
-QT-zlib/
-QT-libpng/
-QT-FreeType/
-Little-Endian-host-little-Endian/
-No-qt3support/
-No-LibTIFF-no-libmng/
-No-OpenGL/
-No-MMX-no-SSE-no-sse2/
-No-3dnow/
-No-OpenSSL/
-No-WebKit/
-No-qvfb/
-No-phonon/
-No-NIS/
-No-OpenGL/
-No-cups/
-No-glib/
-No-xcursor-no-xfixes-no-xrandroid-no-xrender/
-No-separate-debug-info/
-Nomake examples-nomake tools-nomake docs/
-QT-mouse-tslib/
-I/usr/local/tslib/include/
-L/usr/local/tslib/lib
Some of the preceding configuration items should be selected as needed. To compile a WebKit program, remove NO-WebKit.
Save the file. Then run AutoConfig. Sh
[Root @ localhost qt4.7.2] # chmod A + x AutoConfig. Sh # Add executable permissions
[Root @ localhost qt4.7.2] #./AutoConfig. Sh # generate the MAKEFILE file automatically
Compile and install
[Root @ localhost qt4.7.2] # Make
[Root @ localhost qt4.7.2] # make install
Compilation Time may be long