• 5809阅读
  • 2回复

移植Qt-4.5.3时编译错误 [复制链接]

上一主题 下一主题
离线nanjinghu
 
只看楼主 正序阅读 楼主  发表于: 2010-11-10
— 本帖被 XChinux 执行加亮操作(2010-11-11) —
操作系统:
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'.”是怎么回事?


      
离线philon
只看该作者 2楼 发表于: 2010-11-23
可以试试在libdir后加上需要包括的lib 如 -l**
离线nanjinghu
只看该作者 1楼 发表于: 2010-11-10
补充:将-qt-mouse-tslib  改为-no-mouse-tslib ,configure能正常完成。
快速回复
限100 字节
 
上一个 下一个