Then apply this patch to the Qt source code and use the following commands on your PC to build Qt:
export QTDIR=`pwd`
./configure -embedded arm -qt-mouse-linuxtp -DQT_QWS_ADS
gmake
Put the 'lib' directory on your board (a conventient way to do this is with NFS, alternatively, you could use a jffs or cramfs on the on-board flash memory).
To run a Qt program on your board, use the following commands (assuming that the lib directory is in /nfs/qt/lib):
export QTDIR=/nfs/qt
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$QTDIR/lib
export QWS_MOUSE_PROTO=linuxtp
For a PS2 mouse the last line should be changed to:
export QWS_MOUSE_PROTO=IntelliMouse
For a serial mouse:
export QWS_MOUSE_PROTO=Microsoft
To run the example in $QTDIR/examples/widgets:
./widgets -qws
Here is a calibration program (adapted from Opie) that you can use to calibrate the touch screen. This program saves the calibration parameters in the file /etc/pointercal.
and replace /dev/psaux with a link to /dev/input/mice, i.e.
Qt will see the USB mouse as a PS2 mouse.
To configure the kernel to support USB mice, be sure the following are enabled in your kernel configuration: