我根据友善之臂提供的方法,通过修改 /bin/qtopia,把其中的最后一行的改为运行自己的qt程序。
系统启动后,能够顺利进入MyApp程序界面,但是触摸屏幕无法使用!
这是什么问题啊,高手们帮忙分析一下吧,多谢了。
#!/bin/sh
if [ -e /etc/friendlyarm-ts-input.conf ] ; then
. /etc/friendlyarm-ts-input.conf
fi
true ${TSLIB_TSDEVICE:=/dev/touchscreen}
if grep -Ei "\<ctp=(1|2|3)\>" /proc/cmdline >/dev/null; then
TSLIB_CONFFILE=/etc/ts-mt.conf
else
TSLIB_CONFFILE=/etc/ts.conf
fi
export TSLIB_TSDEVICE
export TSLIB_CONFFILE
export TSLIB_PLUGINDIR=/usr/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal
export QTDIR=/opt/Qtopia
export QPEDIR=/opt/Qtopia
export PATH=$QTDIR/bin:$PATH
export LD_LIBRARY_PATH=$QTDIR/lib:/usr/local/lib:$LD_LIBRARY_PATH
export CAMERA_DEVICE=/dev/video2
if [ -c ${TSLIB_TSDEVICE} ]; then
export QWS_MOUSE_PROTO="TPanel USB:/dev/input/mice"
if [ -e /etc/pointercal -a ! -s /etc/pointercal ] ; then
rm /etc/pointercal
fi
if [ ! -e /etc/pointercal ]; then
grep -Ei "\<skipcali=(1|y|yes)\>" /proc/cmdline >/dev/null && {
echo "-27 13757 -2071768 -9105 -32 34531248 65536 800 480" \
>/etc/pointercal
sync
}
fi
else
export QWS_MOUSE_PROTO="USB:/dev/input/mice"
fi
export QWS_KEYBOARD=TTY:/dev/tty1
export HOME=/root
exec $QPEDIR/bin/MyApp -qws
解决方法:
参考了 /bin/qt4。
[ 此帖被dogface在2013-05-14 21:27重新编辑 ]