[linux] The tslib functionality test failed while installing qtlib
2017-2-14 萧
The tslib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR and QMAKE_LIBDIR in
/usr/local/Qt_ARM/mkspecs/qws/linux-arm-g++.
1.If installed tslib or not?
If not,install it.
2.If defined tslib path exactlly in qt?
vi /usr/local/Qt_ARM/mkspecs/qws/linux-arm-g++/qmake.conf
In "../../common/linux.conf", you will see QMAKE_INCLUDE and QMAKE_LIBDIR not define.
If there's rong message after set it,
.configure with a option "-verbose" will show you more info about this error.
I get that there's no define of arm-linux-g++.But I found it in my "PATH".
So that must be error of qt.We set it in qmake.conf file like this:
QMAKE_CC = /opt/crosstool/gcc-4.4.3/bin/arm-linux-gcc
QMAKE_CXX = /opt/crosstool/gcc-4.4.3/bin/arm-linux-g++
QMAKE_LINK = /opt/crosstool/gcc-4.4.3/bin/arm-linux-g++
QMAKE_LINK_SHLIB = /opt/crosstool/gcc-4.4.3/bin/arm-linux-g++
It works!
发表评论: