My development environment is VMware and fedora14.
Recently, the environment for configuring QTE needs to compile tslib and QTE. A lot of problems have been encountered in the middle, and it was finally completed after a day of preparation.
I use a tslib-1.4 and my cross-compilation tool is arm-None-Linux-gnueabi (note that this is not commonly used arm-Linux-GCC ). So the methods are different.
I will not talk about the installation method of arm-None-Linux-gnueabi.
1. Open the terminal and enter the extract directory of tslib.
2. Enter the command
1[Root @ localhost ~]#./Autogen. Sh2[Root @ localhost ~]#Echo "ac_cv_func_malloc_0_nonnull = yes"> arm-none-linux-gnueabi.cache3[Root @ localhost ~]#./Configure -- Host = arm-None-Linux-gnueabi -- cache-file = arm-none-linux-gnueabi.cache -- prefix =/tslib -- enable-inputapi = No4[Root @ localhost ~]#Make5[Root @ localhost ~]#Make install
Qt-embedded-linux-opensource-src-4.5.3 Installation Method
- Open the terminal and go to the directory qt-embedded-linux-opensource-src-4.5.3 (depending on your own decompressed directory ).
- Modify/Mkspecs/qws/Linux-arm-G ++/qmake. confFile.
- Replace all arm-Linux with arm-None-Linux-gnueabi.
- Enter the command
1[Root @ localhost ~]#. /Configure-prefix (where to install QTE) -Embedded ARM-release-shared-fast-no-largefile-QT-SQL-SQLite-no-qt3support-no-xmlpatterns-no-MMX-no-3dnow-no-SSE-no-sse2-no- SVG-no-WebKit-QT-zlib-QT-GIF-QT-LibTIFF-QT-libpng-QT-libmng-QT-libjpeg-make libs-nomake tools-nomake examples-nomake docs-nomake demo-no-Nis-no-cups-no-iconv-no-signature-no-OpenSSL-xplatform qws/Linux-arm-G ++-little-Endian- qt-FreeType-Depths 16, 18-QT-GFX-linuxfb-no-GFX-transformed-no-GFX-multiscreen-no-GFX-VNC-no-GFX-qvfb-QT-KBD -USB-no-glib-QT-mouse-tslib-QT-GFX-qvfb-QT-KBD-qvfb-QT-mouse-linuxtp-I /( tslib installation directory) /tslib/include-L/(tslib installation directory)/tslib/lib
- Run the make command
- Run the make install command.
- Modify user environment variables/home/user name/. bashrc and/root/. bashrc
Export armqtdir = the installation directory of your QTE, that is, the directory set above export Path = $ armqtdir/bin: $ path
Export
Manpath = $ armqtdir/MAN: $ manpath
Export
LD_LIBRARY_PATH = $ armqtdir/lib: $ LD_LIBRARY_PATH
Export qmakespec = the installation directory of your QTE, that is, the directory/mkspecs/qws/Linux-arm-G ++ set above
- Test arm
Whether QT is installed and configured successfully:
A. Execute: qmake
-V
Print the following information
Qmake version 2.01a
Using QT version 4.5.3 In
/Opt/QtEmbedded-4.5.3-arm/lib
B. Run: Which qmake
Print the following information:
/Opt/QtEmbedded-4.5.3-arm/bin/qmake
So far, the QTE version of arm has been compiled successfully.