QT Error: The tslib functionality test failed!

dhruv
Hi All,
  Please help me QT compilation for mini2440, following are the details:

mkspecs/qws/linux-arm-g++/qmake.conf:

include(../../common/g++.conf)
include(../../common/linux.conf)
include(../../common/qws.conf)

# modifications to g++.conf
QMAKE_CC = arm-v4t-linux-gnueabi-gcc -msoft-float -D__GCC_FLOAT_NOT_NEEDED
-march=armv4t -mtune=arm920t -O0 -lts
QMAKE_CXX = arm-v4t-linux-gnueabi-g++ -msoft-float -D__GCC_FLOAT_NOT_NEEDED
-march=armv4t -mtune=arm920t -O0 -lts
QMAKE_LINK = arm-v4t-linux-gnueabi-g++ -msoft-float
-D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lts
QMAKE_LINK_SHLIB = arm-v4t-linux-gnueabi-g++ -msoft-float
-D__GCC_FLOAT_NOT_NEEDED -march=armv4t -mtune=arm920t -O0 -lts

#modifications to linux.conf
QMAKE_AR= arm-v4t-linux-gnueabi-ar cqs
QMAKE_OBJCOPY = arm-v4t-linux-gnueabi-objcopy
QMAKE_STRIP= arm-v4t-linux-gnueabi-strip
QMAKE_RANLIB = arm-v4t-linux-gnueabi-ranlib

QMAKE_INCDIR += /usr/local/comp-tslib/include/
QMAKE_LIBDIR += /usr/local/comp-tslib/lib/

QMAKE_CFLAGS_RELEASE += -march=armv4 -mtune=arm920t
QMAKE_CFLAGS_DEBUG += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_MT += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_MT_DBG += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_MT_DLL += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_MT_DLLDBG += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_SHLIB += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_THREAD += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_WARN_OFF += -march=armv4t -mtune=arm920t
QMAKE_CFLAGS_WARN_ON += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_DEBUG += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_MT += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_MT_DBG += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_MT_DLL += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_MT_DLLDBG += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_RELEASE += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_SHLIB += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_THREAD += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_WARN_OFF += -march=armv4t -mtune=arm920t
QMAKE_CXXFLAGS_WARN_ON += -march=armv4t -mtune=arm920t
load(qt_config)

QT Source: qt-everywhere-opensource-src-4.7.0-tp

tslib compiled output  @ /usr/local/comp-tslib/

ls -lh /usr/local/comp-tslib
total 16K
drwxrwxrwx 2 root root 4.0K Jan 15 13:34 bin
drwxrwxrwx 2 root root 4.0K Jan 15 13:34 etc
drwxrwxrwx 2 root root 4.0K Jan 15 13:34 include
drwxrwxrwx 4 root root 4.0K Jan 15 13:34 lib

Command to comiple:
$./configure -embedded arm -xplatform qws/linux-arm-g++ -prefix
/usr/local/Qt -qt-mouse-tslib -little-endian -no-webkit -no-qt3support
-no-cups -no-largefile -optimized-qmake -no-openssl -nomake tools
-qt-sql-sqlite -no-3dnow -system-zlib -qt-gif -qt-libtiff -qt-libpng
-qt-libmng -qt-libjpeg -no-opengl -gtkstyle -no-openvg -no-xshape -no-xsync
-no-xrandr -qt-freetype -qt-gfx-linuxfb -qt-kbd-tty -qt-kbd-linuxinput
-qt-mouse-tslib -qt-mouse-linuxinput

Error:
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/zahir/Desktop/QT/qt-everywhere-opensource-src-4.7.0-tp/mkspecs/qws/linux-
arm-g++.

Please help me with it. i am struggling with this for a week. any help will
be appreciated.

Thanks,
 Dhruv

davef
Have you read the tutorial at mini2440vietnam?

You have cross-compiled tslib first? And searched this site for:

tslib functionality test failed

dhruv
@davef:
 Yes i had cross-compiled tslib and the same is being updated in qmake.conf

dhruv
I tried qt compilation with diff versions, but still i am receiving the
same error. can any one please help me on this.

Downloading qt src from:
http://ftp.jaist.ac.jp/pub/qtproject/archive/qt/4.6/

ARM Toolchain:
OSELAS.Toolchain-2011.11.1/arm-v4t-linux-gnueabi/gcc-4.6.2-glibc-2.14.1-binutils
-2.21.1a-kernel-2.6.39-sanitized/bin/arm-v4t-linux-gnueabi-

Juergen
It seems you are using our toolchain but not our Mini2440 BSP. In the BSP
compilation of Qt and tslib is already solved. Why do you try it to do by
your own again?

dhruv
@Juergen: I am only using toolchain of OSELAS.

I managed to compile QT. it was permission issues wrt tslib.

But stuck in other issue:
/mnt/demos/embedded/fluidlauncher # ./fluidlauncher  -qws                  
                                         
./fluidlauncher: error while loading shared libraries: libts-1.0.so.0:
cannot open shared object file: No such file or directory

Followed all the steps  from below link:
http://mini2440vietnam.blogspot.in/2011/04/upgrade-qt462-in-mini2440.html

I ran chmod 777 for /usr/local/tslib in order to ensure if its wrt
permission issues.


Please help me...

Juergen
"cannot open shared object file: No such file or directory"

Seems you forget to copy the ts-lib to your target.

dhruv
@Juergen:

As is said in pervious post that "I ran chmod 777 for /usr/local/tslib in
order to ensure if its wrt permission issues." by which i meant those lib n
permission i have cross checked :)

davef
./fluidlauncher: error while loading shared libraries: libts-1.0.so.0:
cannot open shared object file: No such file or directory

Just a thought ... I recall that forum members bluscape or ruben had sorted
out an error similar to this in Qt previous posts.  Think it was ruben that
came up with the answer.

I think in response to:

You might need to modify the include and library search paths by editing
 QMAKE_INCDIR and QMAKE_LIBDIR in


Sorry, my Linux stuff is in another location.

davef
The one I am referring to:

http://www.friendlyarm.net/forum/topic/4853


Another related issue:

http://www.friendlyarm.net/forum/topic/5488

dhruv
Thanks davef. 
Issue resolved and able to run qt app, as there was problem with my RFS,
due to which the lib path were nt exported properly.