当前位置: 技术问答>linux和unix
tslib-1.4移植成功,但下载qt应用程序 触摸屏没有响应
来源: 互联网 发布时间:2017-03-26
本文导语: tslib-1.4终于移植成功了,他下面的几个测试程序(ts_calibrate等)能在开发板上正常运行,但是当我把一个简单的qt程序hello world交叉编译下载到板子上后,触摸屏上能显示界面但不能移动光标,同时还提示: Couldnt loa...
tslib-1.4终于移植成功了,他下面的几个测试程序(ts_calibrate等)能在开发板上正常运行,但是当我把一个简单的qt程序hello world交叉编译下载到板子上后,触摸屏上能显示界面但不能移动光标,同时还提示:
Couldnt load module pthres
QWSTslibMouseHandlerPrivate: ts_config() failed with error: 'No such file or directory'
Please check your tslib installation!
我在/etc/profile中的设置如下:
export TSLIB_ROOT=/tslib
export TSLIB_TSDEVICE=/dev/event0
export set TSLIB_TSDEVICE=/dev/event0
export set TSLIB_CONFFILE=/tslib/etc/ts.conf
export set TSLIB_PLUGINDIR=/tslib/lib/ts
export POINTERCAL_FILE=/etc/pointercal
export set TSLIB_CALIBFILE=/etc/pointercal
#export set HOME=/root
export set QTDIR=/opt/qt
export set QPEDIR=/opt/qtopia
export set KDEDIR=/opt/qt
export set QWS_DISPLAY="LinuxFB:/dev/fb0"
export set QWS_DISPLAY="LinuxFb:mmWidth50:mmHeight65:0"
export QWS_SIZE=320x240
#export TSLIB_TSEVENTTYYPE=H3600i
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/tslib/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_CONFFILE=/tslib/etc/ts.conf
#export set QWS_KEYBOARD="TTY:/dev/tty1"
export set QWS_MOUSE_PROTO=Tslib:/dev/event0
export set QT_PLUGIN_PATH=$QTDIR/plugins/
export set QT_QWS_FONTDIR=$QTDIR/lib/fonts/
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/plugins/imageformats:$LD_LIBRARY_P
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tslib/lib
/tslib/bin/ts_calibrate
我的ts_conf如下:
module_raw input
module pthres
module variance delta=30
module dejitter delta=100
module linear
都是顶格的没有空格
Couldnt load module pthres
QWSTslibMouseHandlerPrivate: ts_config() failed with error: 'No such file or directory'
Please check your tslib installation!
我在/etc/profile中的设置如下:
export TSLIB_ROOT=/tslib
export TSLIB_TSDEVICE=/dev/event0
export set TSLIB_TSDEVICE=/dev/event0
export set TSLIB_CONFFILE=/tslib/etc/ts.conf
export set TSLIB_PLUGINDIR=/tslib/lib/ts
export POINTERCAL_FILE=/etc/pointercal
export set TSLIB_CALIBFILE=/etc/pointercal
#export set HOME=/root
export set QTDIR=/opt/qt
export set QPEDIR=/opt/qtopia
export set KDEDIR=/opt/qt
export set QWS_DISPLAY="LinuxFB:/dev/fb0"
export set QWS_DISPLAY="LinuxFb:mmWidth50:mmHeight65:0"
export QWS_SIZE=320x240
#export TSLIB_TSEVENTTYYPE=H3600i
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/tslib/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_CONFFILE=/tslib/etc/ts.conf
#export set QWS_KEYBOARD="TTY:/dev/tty1"
export set QWS_MOUSE_PROTO=Tslib:/dev/event0
export set QT_PLUGIN_PATH=$QTDIR/plugins/
export set QT_QWS_FONTDIR=$QTDIR/lib/fonts/
export set PATH=$QPEDIR/bin:$PATH
export set LD_LIBRARY_PATH=$QTDIR/lib:$QPEDIR/plugins/imageformats:$LD_LIBRARY_P
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tslib/lib
/tslib/bin/ts_calibrate
我的ts_conf如下:
module_raw input
module pthres
module variance delta=30
module dejitter delta=100
module linear
都是顶格的没有空格
|
移植qt的时候加入-qt-mouse-tslib(./configure -qt-mouse-tslib -xxxx)
|
我想说的也是这个,在你qt编译的时候要加入这个,好像还要有你编译好的tslib目录的指定
自己也好久没有用了
|
你要也要移植Qt哈、