Toolchain: supplier provided toolchain (4.2.2-eabi-arm)
Error: When start a Qt example, the following error message show
QWSTslibMouseHandlerPrivate: ts_config() failed with error: 'No such file or directory'
Please check your tslib installation!
The problem is solved by following:
Download & build the latest tslib again from http://tslib.berlios.de/
> tar xzvf tslib-1.4.gz
> cd tslib
>./autogen.sh
>./configure -host=arm-linux -prefix=/usr/local/tslib
>makeQt was successfully build with the toolchain:
>make install
./configure -prefix /usr/local/qt-4.7.1-armsys-6410 -embedded arm -xplatform qws/linux-arm-g++ -depths 16 -qt-mouse-tslib -I/usr/local/tslib/include -L/usr/local/tslib/lib -R /usr/local/tslib/lib -xmlpatterns -exceptions
makeCopy the installed Qt into root file system, which will be nfs mounted by board
make install
sudo cp -rf /usr/local/qt-4.7.1-armsys-6410 /home/max/work/arena/rootf/armsys6410/root/usr/local/Start the board by nfs mounting /home/max/work/arena/rootf/armsys6410/root/
I use minicom here, the parameters are
setenv bootargs "root=/dev/nfs nfsroot=192.168.2.118:/home/max/work/arena/rootf/armsys6410/root/ ip=192.168.2.10:192.168.2.118:192.168.2.1:255.255.255.0:armsys.hzlitai.com:eth0:off console=ttySAC0,115200"Check the device file of touchscreen. Assume the device of board is /dev/input/event1
cat /dev/input/event1| hexdumpNow when you move the mouse in the touchscreen, the similar texts will be displayed on the console. It means that /dev/input/event1 is the correct device file of touchscreen on board.
...
0000300 7cc6 3a50 bb73 000b 0003 0001 1f94 0000
0000310 7cc6 3a50 bb7d 000b 0000 0000 0000 0000
0000320 7cc6 3a50 cee6 000b 0003 0000 0fbb 0000
0000330 7cc6 3a50 cefa 000b 0003 0001 1fff 0000
0000340 7cc6 3a50 cf03 000b 0000 0000 0000 0000
0000350 7cc6 3a50 e269 000b 0001 014a 0000 0000
0000360 7cc6 3a50 e27c 000b 0003 0018 0000 0000
0000370 7cc6 3a50 e281 000b 0000 0000 0000 0000
....
0000320 7cc6 3a50 cee6 000b 0003 0000 0fbb 0000
0000330 7cc6 3a50 cefa 000b 0003 0001 1fff 0000
0000340 7cc6 3a50 cf03 000b 0000 0000 0000 0000
0000350 7cc6 3a50 e269 000b 0001 014a 0000 0000
0000360 7cc6 3a50 e27c 000b 0003 0018 0000 0000
0000370 7cc6 3a50 e281 000b 0000 0000 0000 0000
....
Add following enviromental variables into /etc/profile
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=$TSLIB_ROOT/etc/ts.conf
export TSLIB_PLUGINDIR=$TSLIB_ROOT/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export TSTS_INFO_FILE=/sys/devices/virtual/input/input0/uevent
export QWS_MOUSE_PROTO=tslib:/dev/input/event1
export QWS_KEYBOARD=TTY:/dev/tty1
export HOME=/root
export QTDIR=/usr/local/qt-4.7.1-armsys-6410
export QPEDIR=/usr/local/qt-4.7.1-armsys-6410
export PATH=$PATH:/usr/local/tslib/lib:$QTDIR/bin
export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/tslib/lib:/usr/local/lib:$LD_LIBRARY_PATH
Run calibration again.
/usr/local/tslib/bin/ts_calibrateTry a Qt example,
/usr/local/qt-4.7.1-armsys-6410/examples/widgets/calculator/calculator -qws
The error messages didn't show again.
References
Nice man doc of tslib
http://www.blogger.com/post-edit.g?blogID=5974839100591333846&postID=6336916594199395808
http://doc.qt.nokia.com/4.7-snapshot/qt-embedded-pointer.html
homepage of tslib
http://tslib.berlios.de/
minicom nfs copy kernel to board
http://www.armsystem.com.cn/bbs/redirect.php?fid=29&tid=12260&goto=nextnewset
http://www.qtcentre.org/threads/23353-Qt-Embedded-4.5-TsLib-and-TSC-10-touch-screen-(Solved)
No comments:
Post a Comment