[root@FriendlyARM /sdcard]# ./helloQT4 -qws
{可以显示界面,但是触摸屏没有反应}
[root@FriendlyARM /sdcard]# ls
BOOTEX.LOG LOST.DIR helloQT4 setqt4env
Bak dream_true.mp3 images your.mp3
DCIM hello qt4.7.tgz ????
[root@FriendlyARM /sdcard]#
[root@FriendlyARM /sdcard]# . setqt4env
[root@FriendlyARM /sdcard]#
[root@FriendlyARM /sdcard]# ./helloQT4 -qws
{执行完. setqt4env后,再运行./helloQT4 -qws,触摸屏才有反应}
{
#!/bin/sh
if [ -e /etc/friendlyarm-ts-input.conf ] ; then
. /etc/friendlyarm-ts-input.conf
fi
true ${TSLIB_TSDEVICE:=/dev/touchscreen}
TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_TSDEVICE
export TSLIB_CONFFILE
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_DISPLAY=:1
export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
export PATH=/bin:/sbin:/usr/bin/:/usr/sbin:/usr/local/bin
if [ -c /dev/touchscreen ]; then
export QWS_MOUSE_PROTO="Tslib MouseMan:/dev/input/mice"
if [ ! -s /etc/pointercal ] ; then
rm /etc/pointercal
/usr/bin/ts_calibrate
fi
else
export QWS_MOUSE_PROTO="MouseMan:/dev/input/mice"
fi
export QWS_KEYBOARD=TTY:/dev/tty1
export HOME=/root
}