This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

QT编译出错

您好,我准备将QT移植到DM368平台上,

我参照processors.wiki.ti.com/.../DM365_touchscreen_with_Qt上的方法编译QT,结果报了如下错误:

root@ubuntu:/home/qxd/dm365/dvsdk_dm365_4_02_00_06/QT/qt_dm365/qt-everywhere-opensource-src-4.8.6# ./configure -prefix /opt/qt-embedded -embedded arm -platform /qws/linux-x86-g++ -xplatform /qws/linux-dm365-g++ -depths 16,24,32 -no-cups -no-largefile -no-accessibility -no-openssl -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -qt-mouse-tslib
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.

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

Creating qmake. Please wait...
make: Nothing to be done for `first'.

You have not explicitly asked to use pkg-config and are cross-compiling.
pkg-config will not be used to automatically query cflag/lib parameters for
dependencies

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/qxd/dm365/dvsdk_dm365_4_02_00_06/QT/qt_dm365/qt-everywhere-opensource-src-4.8.6/mkspecs//qws/linux-dm365-g++.
root@ubuntu:/home/qxd/dm365/dvsdk_dm365_4_02_00_06/QT/qt_dm365/qt-everywhere-opensource-src-4.8.6# ./configure -prefix /opt/qt-embedded -embedded arm -platform /qws/linux-x86-g++ -xplatform /qws/linux-dm365-g++ -depths 16,24,32 -no-cups -no-largefile -no-accessibility -no-openssl -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -qt-mouse-tslib -force-pkg-config
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.

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

Creating qmake. Please wait...
make: Nothing to be done for `first'.

You have asked to use pkg-config and are cross-compiling.
Please make sure you have a correctly set-up pkg-config
environment!


Warning: PKG_CONFIG_PATH has not been set. This could mean
the host compiler's .pc files will be used. This is probably
not what you want.

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/qxd/dm365/dvsdk_dm365_4_02_00_06/QT/qt_dm365/qt-everywhere-opensource-src-4.8.6/mkspecs//qws/linux-dm365-g++.
root@ubuntu:/home/qxd/dm365/dvsdk_dm365_4_02_00_06/QT/qt_dm365/qt-everywhere-opensource-src-4.8.6#

其中qt-everywhere-opensource-src-4.8.6/mkspecs//qws/linux-dm365-g++/qmake.conf内容如下:

#
# qmake configuration for building with arm-linux-g++
#

include(../../common/linux.conf)
include(../../common/gcc-base-unix.conf)
include(../../common/g++-unix.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-gcc
QMAKE_CXX = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-g++
QMAKE_LINK_SHLIB = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-g++

#modifications to include ts-lib
QMAKE_INCDIR = /usr/local/Trolltech/include
QMAKE_LIBDIR = /usr/local/Trolltech/lib

# modifications to linux.conf
QMAKE_AR = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-objcopy
QMAKE_STRIP = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-strip

load(qt_config)

其中tslib已经编译好,放在:

root@ubuntu:/usr/local/Trolltech# ls
bin etc include lib QtEm-4.7.2-arm

请问我该如何解决这一问题?谢谢!

  • 你好,

    能否尝试和wiki链接上同样版本的QT?

  • 我下载了同样的版本编译,依然报错:

    root@ubuntu:/home/qxd/dm365/dvsdk_dm365_4_02_00_06/QT/qt-everywhere-opensource-src-4.6.0# ./configure -prefix /opt/qt-embedded -embedded arm -platform /qws/linux-x86-g++ -xplatform /qws/linux-dm365-g++ -depths 16,24,32 -no-cups -no-largefile -no-accessibility -no-openssl -qt-mouse-pc -qt-mouse-linuxtp -qt-mouse-linuxinput -plugin-mouse-linuxtp -plugin-mouse-pc -fast -qt-mouse-tslib -I /usr/local/Trolltech/include -L /usr/local/Trolltech/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


    You have not explicitly asked to use pkg-config and are cross-compiling.
    pkg-config will not be used to automatically query cflag/lib parameters for
    dependencies


    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

    Creating qmake. Please wait...
    make: 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/qxd/dm365/dvsdk_dm365_4_02_00_06/QT/qt-everywhere-opensource-src-4.6.0/mkspecs//qws/linux-dm365-g++.
    root@ubuntu:/home/qxd/dm365/dvsdk_dm365_4_02_00_06/QT/qt-everywhere-opensource-src-4.6.0#

  • 你好,

    你看看下面的blog,编译器路径不对也会有同样的错误。

    http://blog.sina.com.cn/s/blog_640531380101dh8m.html

  • 我已参照连接所属修改了:

    root@ubuntu:/opt/arm-2009q1-203/bin# ls
    arm-none-linux-gnueabi-addr2line arm-none-linux-gnueabi-gprof
    arm-none-linux-gnueabi-ar arm-none-linux-gnueabi-ld
    arm-none-linux-gnueabi-as arm-none-linux-gnueabi-nm
    arm-none-linux-gnueabi-c++ arm-none-linux-gnueabi-objcopy
    arm-none-linux-gnueabi-c++filt arm-none-linux-gnueabi-objdump
    arm-none-linux-gnueabi-cpp arm-none-linux-gnueabi-ranlib
    arm-none-linux-gnueabi-g++ arm-none-linux-gnueabi-readelf
    arm-none-linux-gnueabi-gcc arm-none-linux-gnueabi-size
    arm-none-linux-gnueabi-gcc-4.3.3 arm-none-linux-gnueabi-sprite
    arm-none-linux-gnueabi-gcov arm-none-linux-gnueabi-strings
    arm-none-linux-gnueabi-gdb arm-none-linux-gnueabi-strip
    arm-none-linux-gnueabi-gdbtui

    #
    # 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 = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-gcc -lts
    QMAKE_CXX = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-g++ -lts
    QMAKE_LINK = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-g++ -lts
    QMAKE_LINK_SHLIB = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-g++ -lts

    #modifications to include ts-lib
    QMAKE_INCDIR = /usr/local/Trolltech/include
    QMAKE_LIBDIR = /usr/local/Trolltech/lib

    # modifications to linux.conf
    QMAKE_AR = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-ar cqs
    QMAKE_OBJCOPY = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-objcopy
    QMAKE_STRIP = /opt/arm-2009q1-203/bin/arm-none-linux-gnueabi-strip

    load(qt_config)

    但是还是报同样的错误?

    qmake.zip