tslib not found

arash
Guys,

I compiled Qt 4.7.1 and 4.6.3.
when I want run demos I got this error:

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

I use this document to compile Qt:
http://www.sereno-labs.com/qt-4-6-2-installation-procedure-for-friendlya...

I also tried to compile tslib :
$ mkdir tslib ; cd tslib
$ git clone http://github.com/kergoth/tslib.git
$ ./autogen.sh
$ ./configure --host=arm-angstrom-linux-gnueabi --prefix=/usr/local/tslib
--enable-static --enable-shared
$ make -j4
$ make install

and then add this to qmake.conf:
QMAKE_INCDIR  += /usr/local/tslib/include
QMAKE_LIBDIR  += /usr/local/tslib/lib

but not any chance.

where is tslib lib dir in qtopia? can I use tslib lib dir in qtopia for
TSLIB_PLUGINDIR?

arash
sorry,I just copy paste from wrong page.
I use this for configuring tslib
./configure --host=arm-none-linux-gnueabi --prefix=/usr/local/tslib
--enable-static --enable-shared

davef
where is libts-0.0.so.0 on your system?

arash
on host or target?
host :
/usr/local/tslib
target:
/usr/local/lib

I also use rootfs_qtopia_qt4.img from arm9.net but I can not run demos.

[root@FriendlyARM pathstroke]# ./pathstroke -qws
./pathstroke: error while loading shared libraries: libts-0.0.so.0: cannot
open shared object file: No such file or directory

please check this:
[root@FriendlyARM /]# find / -type f -name libts*
/usr/local/lib/libts-0.0.so.0.1.1
[root@FriendlyARM /]# cd /usr/local/lib/
[root@FriendlyARM lib]# ls
libts-0.0.so.0      libts.so
libts-0.0.so.0.1.1  ts

arash
I compiled Qt with switch -no-mouse-tslib and everything is ok except
touchsceen.
problem is just damn tslib:(

davef
I ended up cheating and used tslib out of this 
http://billforums.station51.net/viewtopic.php?f=8&t=15&start=80

I couldn't get past this stage as well. Have you checked that
libts-0.0.so.0 is a cross-compiled version? I dragged stuff off
packages.debian.org and then ended up losing my way.

Good luck

arash
You mean this?
http://packages.debian.org/lenny/xserver-xorg-input-tslib

you installed it on host?

davef
No.

I found tslib in an attached file at the quoted URL.

libts, it would have been this one:

http://packages.debian.org/lenny/libts-0.0-0

and the armel version.

Like I said, I was not successful, so you will have to find the answer
elsewhere.

Good luck

arash
it seems export not working
export TSLIB_PLUGINDIR=/usr/local/lib


I use this to skip this step.if you use qtopia image you can use this way
ln -s /usr/local/lib/libts-0.0.so.0 /usr/local/Qt/lib/libts-0.0.so.0

arash
Attachment: arash (801 Byte)
Hi,
If you using qtopia rootfs image just use this file to run applications.
if you using Qt4.7 or more you must run last qtopia image.
Qt 4.7 need glibc 2.9


Good luck

Vinicius Kamakura
try:

export LD_LIBRARY_PATH=/path/to/your/tslib
./app -qws

regards

raghushivram
Hello,

I am developing on Mini2440 board, faced similar problems.
I resolved for successful execution by creating a link to libts-0.0.so.0

ln -s /usr/local/lib/libts-0.0.so.0
/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib/libts-0.0.so.0

Environment variables on my mini2440 is as follows:
export TSLIB_TSEVENTTYPE=INPUT
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/usr/local/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export TSLIB_PLUGINDIR=/usr/local/lib/ts
export LD_LIBRARY_PATH=/usr/local/Trolltech/QtEmbedded-4.6.3-arm/lib
export QTDIR=/usr/local/Trolltech/QtEmbedded-4.6.3-arm
export QWS_MOUSE_PROTO=tslib:/usr/local/lib/ts
export QWS_DISPLAY=LinuxFB:mmWidth=310:mmHeight=190

But touch screen is not responding.
Error Message is: selected device is not a touchscreen I understand

Thanks and Regards

raghushivram
Hello,

Touch screen now works.
Just by changing two environment variables regarding the touch screen:

export TSLIB_TSDEVICE=/dev/input/event0
export QWS_MOUSE_PROTO=tslib:/dev/input/event0

QT 4.6.3 based application works fine.

Thanks and Regards

Dhruv Vyas
Hello....there...

I faced a very strange error saying 

libc.so.6 :glibc 2.9 required while executing fluidlauncher program...

I am running qtopia 2.2 on my 64 MB nand mini2440...with 2.6.32.2 linux
image and superviv-64M.....

Any help will be appreciated...!

Dhruv Vyas
and qt version is 4.6.3

Juergen Beisert
It seems your target provides a different glibc revision than your cross
compile environment uses to build the binaries. Syncronize them first.

Dhruv Vyas
And how to make sure that ?

I used arm-linux-gcc-4.4.3 to compile qt libraries.

Can you give me any clue how to solve this problem ?

Juergen Beisert
There is no simple solution I could talk about if you do not have access to
the knowledge how the root filesystem currently running on your target was
built.
Maybe it would be better to re-build the whole target's root filesystem
with your existing cross-environment to get everything in sync (and
reliable).

Dhruv Vyas
As far root file system is concerned, i am using pre-built qtopia 2.2 image
bundled with dvd.

Smith
./application: /lib/libc.so.6: version `GLIBC_2.9' not found (required by
/usr/local/Qt/lib/libQtCore.so.4)