• 4041阅读
  • 4回复

[提问]The tslib functionality test failed! [复制链接]

上一主题 下一主题
离线jiangxinwang
 

只看楼主 倒序阅读 楼主  发表于: 2017-07-27

您好,我准备将QT移植到DM368平台上,
我参照http://processors.wiki.ti.com/index.php/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



请问我该如何解决这一问题?谢谢!
本帖提到的人: @ubuntu
离线大漠之鹰

只看该作者 1楼 发表于: 2017-07-27
configure的时候加-I  path/to/tslibinclude  -L path/to/tsliblib
本是后山人,偶作前堂客,醉舞经阁半卷书,坐井说天阔。大志戏功名,海斗量福祸,论到囊中羞涩时,怒指乾坤错
QQ:874164244
离线jiangxinwang

只看该作者 2楼 发表于: 2017-07-28
回 大漠之鹰 的帖子
大漠之鹰:configure的时候加-I  path/to/tslibinclude  -L path/to/tsliblib (2017-07-27 17:05) 

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#

我加了之后,甚至换了QT版本,结果还是报错编译不下去了
本帖提到的人: @ubuntu
离线大漠之鹰

只看该作者 3楼 发表于: 2017-07-29
那两个目录是talib安装后的头文件目录和库目录,不是Qt的安装目录
本是后山人,偶作前堂客,醉舞经阁半卷书,坐井说天阔。大志戏功名,海斗量福祸,论到囊中羞涩时,怒指乾坤错
QQ:874164244
离线jiangxinwang

只看该作者 4楼 发表于: 2017-07-31
回 大漠之鹰 的帖子
大漠之鹰:
那两个目录是talib安装后的头文件目录和库目录,不是Qt的安装目录

谢谢!
是的。我编译完tslib之后,在/usr/local/Trolltech下生成的include和lib文件夹:


我是按照这个路径给编译选项的。
快速回复
限100 字节
 
上一个 下一个