I’ve managed to get the touchscreen working now.
I’ve build qt embedded with config
-qt-mouse-tslib
and the touchscreen works when exporting the QWS_MOUSE_PROTO as mentioned above.
To build qt embedded with tslib, you must first build the tslib for arm on your host system as described here:
(1) http://embedfun.blogspot.ch/2011/07/compiling-qt-embedded-for-arm.html
use the arm toolchain from the angstrom website.
Build qt embedded as described here:
(2) http://treyweaver.blogspot.ch/2010/10/setting-up-qt-development-environment.html
don't forget to add -qt-mouse-tslib when configuring qt. add the following lines to the qmake.conf (from (1)):
QMAKE_INCDIR = /home/USER/tslib_arm/include
QMAKE_LIBDIR = /home/USER/tslib_arm/lib
MAKE_LFLAGS = -lts
replace USER with your user name.
After qt is installed, build your qt project as described in (2) and copy the binary and the qtlibs to your target.
On the target device, issue the following commands:
export QWS_MOUSE_PROTO=tslib:/dev/input/event0
./MyApp -qws