操作系统:
Redhat linux Enterprise 5
QT 版本
qt-embedded-linux-opensource-src-4.5.3.tar.bz2
tslib-1.4.tar.gz
交叉编译工具链:
arm-linux-addr2line arm-linux-g++ arm-linux-ld arm-linux-size
arm-linux-ar arm-linux-gcc arm-linux-nm arm-linux-strings
arm-linux-as arm-linux-gcc-4.1.1 arm-linux-objcopy arm-linux-strip
arm-linux-c++ arm-linux-gccbug arm-linux-objdump fix-embedded-paths
arm-linux-c++filt arm-linux-gcov arm-linux-ranlib
arm-linux-cpp arm-linux-gprof arm-linux-readelf
编译:
先编译生成tslib,makeinstall到/usr/local/tslib,然后qt-embedded-linux-opensource-src-4.5.3.tar.bz2
解压到
/home/ems/qt_tools/qt-embedded-linux-opensource-src-4.5.3-arm
编译过程如下:
[root@hujf qt-embedded-linux-opensource-src-4.5.3-arm]# ./configure -prefix /usr/local/Qt/QtEmbedded-4.5.3-arm/ -release -shared -fast -pch -no-qt3support -qt-sql-sqlite -no-libtiff -no-libmng -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -no-openssl -nomake examples -nomake demos -nomake tools -optimized-qmake -no-phonon -no-nis -no-opengl -no-cups -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-xkb -no-sm -no-xinerama -no-xshape -no-separate-debug-info -xplatform qws/linux-arm-g++ -embedded arm -depths 16 -no-qvfb -qt-gfx-linuxfb -no-gfx-qvfb -no-kbd-qvfb -no-mouse-qvfb -qt-kbd-usb -confirm-license -qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib
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
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.
You have already accepted the terms of the license.
Creating qmake. Please wait...
gmake: Nothing to be done for `first'.
The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
/home/ems/qt_tools/qt-embedded-linux-opensource-src-4.5.3-arm/mkspecs/qws/linux-arm-g++.
我的配置中已经配置了tslib的路径,并按照提示在qmake.conf中增加了QMAKE_INCDIR 和 QMAKE_LIBDIR ,依然出现以上问题,请问是怎么回事呢?
这个“gmake: Nothing to be done for `first'.”是怎么回事?