x86_64 核心套件,要加裝 glibc.i686 套件。
[root@dyH ~]# yum install glibc.i686
[root@dyH ~]# yum install qt
[root@dyH ~]# cd /usr/src [root@dyH src]# wget http://ftp.heanet.ie/mirrors/trolltech/pub/qt/source/qt-embedded-linux-opensource-src-4.5.3.tar.gz
[root@dyH ~]# cd src [dywang@dyH src]$ tar zxvf qt-embedded-linux-opensource-src-4.5.3.tar.gz [root@dyH src]# cd qt-embedded-linux-opensource-src-4.5.3 [root@dyH qt-embedded-linux-opensource-src-4.5.3]# ls bin demos include LICENSE.GPL3 qmake translations changes-4.5.3 doc INSTALL LICENSE.LGPL README config.tests examples LGPL_EXCEPTION.txt mkspecs src configure FAQ.txt lib projects.pro tools
[root@dyH qt-embedded-linux-opensource-src-4.5.3]# cat mkspecs/qws/linux-arm-g++/qmake.conf # # qmake configuration for building with arm-linux-g++ # include(../../common/g++.conf) include(../../common/linux.conf) include(../../common/qws.conf) # modifications to g++.conf QMAKE_CC = arm-linux-gcc QMAKE_CXX = arm-linux-g++ QMAKE_LINK = arm-linux-g++ QMAKE_LINK_SHLIB = arm-linux-g++ # modifications to linux.conf QMAKE_AR = arm-linux-ar cqs QMAKE_OBJCOPY = arm-linux-objcopy QMAKE_STRIP = arm-linux-strip load(qt_config)
[root@dyH qt-embedded-linux-opensource-src-4.5.3]# ll Makefile ls: cannot access Makefile: No such file or directory [root@dyH qt-embedded-linux-opensource-src-4.5.3]# ./configure -embedded arm \ -qt-zlib -qt-libpng -qt-gif -qt-libtiff -qt-libmng -qt-libjpeg -qt-freetype -no-openssl Which edition of Qt do you want to use ? Type 'c' if you want to use the Commercial Edition. Type 'o' if you want to use the Open Source Edition. o %* c 為商用版,o 為 Open Source 版*) This is the Qt for Embedded Linux Open Source Edition. You are licensed to use this software under the terms of the Lesser GNU General Public License (LGPL) versions 2.1. You are also licensed to use this software under the terms of the GNU General Public License (GPL) versions 3. Type '3' to view the GNU General Public License version 3. Type 'L' to view the Lesser GNU General Public License version 2.1. Type 'yes' to accept this license offer. Type 'no' to decline this license offer. Do you accept the terms of either license? yes %*回答 yes 接受版權宣告*) Creating qmake. Please wait... gmake: Nothing to be done for `first'. ...... ...... Qt is now configured for building. Just run 'gmake'. Once everything is built, you must run 'gmake install'. Qt will be installed into /usr/local/Trolltech/QtEmbedded-4.5.3-arm To reconfigure, run 'gmake confclean' and 'configure'.
[root@dyH qt-embedded-linux-opensource-src-4.5.3]# ll Makefile -rw-r--r--. 1 root root 117564 Sep 8 08:13 Makefile [root@dyH qt-embedded-linux-opensource-src-4.5.3]# gmake %*要花點時間*) [root@dyH qt-embedded-linux-opensource-src-4.5.3]# gmake install
[root@dyH qt-embedded-linux-opensource-src-4.5.3]# ll /usr/local/Trolltech/QtEmbedded-4.5.3-arm total 28 drwxr-xr-x. 2 root root 4096 Sep 7 22:37 bin drwxr-xr-x. 18 root root 4096 Sep 7 22:37 demos drwxr-xr-x. 25 root root 4096 Sep 7 22:37 examples drwxr-xr-x. 14 root root 4096 Sep 7 22:36 include drwxr-xr-x. 4 root root 4096 Sep 7 22:36 lib drwxr-xr-x. 88 root root 4096 Sep 7 22:37 mkspecs drwxr-xr-x. 6 root root 4096 Sep 7 22:36 plugins