标题:The tslib functionality test failed!
作者:jiangxinwang
日期:2017-07-27 14:49
内容:
您好,我准备将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 -embedde ..
#1 [大漠之鹰 07-27 17:05]
configure的时候加-Ipath/to/tslibinclude-L path/to/tsliblib
#2 回 大漠之鹰 的帖子 [jiangxinwang 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
..
#3 [大漠之鹰 07-29 07:46]
那两个目录是talib安装后的头文件目录和库目录,不是Qt的安装目录
#4 回 大漠之鹰 的帖子 [jiangxinwang 07-31 09:02]
大漠之鹰:
那两个目录是talib安装后的头文件目录和库目录,不是Qt的安装目录
谢谢!
是的。我编译完tslib之后,在/usr/local/Trolltech下生成的include和lib文件夹:
我是按照这个路径给编译选项的。