查看完整版本: [-- The tslib functionality test failed! --]

QTCN开发网 -> Qt嵌入式开发 -> The tslib functionality test failed! [打印本页] 登录 -> 注册 -> 回复主题 -> 发表主题

jiangxinwang 2017-07-27 14:49

The tslib functionality test failed!


您好,我准备将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



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

大漠之鹰 2017-07-27 17:05
configure的时候加-I  path/to/tslibinclude  -L path/to/tsliblib

jiangxinwang 2017-07-28 10:09
大漠之鹰: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版本,结果还是报错编译不下去了

大漠之鹰 2017-07-29 07:46
那两个目录是talib安装后的头文件目录和库目录,不是Qt的安装目录

jiangxinwang 2017-07-31 09:02
大漠之鹰:
那两个目录是talib安装后的头文件目录和库目录,不是Qt的安装目录

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

我是按照这个路径给编译选项的。


查看完整版本: [-- The tslib functionality test failed! --] [-- top --]



Powered by phpwind v8.7 Code ©2003-2011 phpwind
Gzip disabled