qt的tslib的具体移植步骤和过程就很少讲了,我说说我按照手册移植好tslib后在开发板运行提示的错误以及个人解决方法,固然每一个人的提示可能同样,解决方法就不同,我也是个初学者,因此方法仅供你们参考!this
问题一:spa
Segmentation fault.net
Could not read calibration: "/etc/pointercal"blog
解决方法:开发
编辑rootfs/usr/localtslib/etc/ts.conf文件(这是个人文件夹位置),编译内容以下:
vi etc/ts.conf
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
注意,确保module_raw前面没有空格,不然会弹出Segmentation fault的错误。get
好了,个人问题解决了,保存,编译,下载,接着又问题了;input
问题二:源码
Please press Enter to activate this console. xres = 480, yres = 272
selected device is not a touchscreen I understand,触摸屏矫正画面已经显示出来了,但是点击没放应;qt
解决方法:看到网上不少人写的解决方法修改usr/bin/qtconfigit
修改内容以下:
export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_PLUGINDIR=/usr/local/lib/ts
export TSLIB_CXXXOLEDEVICE=none
export TSLIB_CONFFILE=/usr/local/etc/ts.conf
export POINTERCAL_FILE=/etc/pointercal
export TSLIB_CALIBFILE=/etc/pointercal
export QWS_MOUSE_PROTO=Tslib:/dev/input/event0
照着上面修改后,编译下载仍是有问题,
提示: ts_open: No such file or directory
Could not read calibration: "/etc/pointercal" ;
网上搜了不少,发现dev目录下没有input文件夹,只有event0,event1,event2,event3,
而后仔细看开发板带的源码,个人是event2,只要修改export TSLIB_TSDEVICE=/dev/event2,就能够
而后编译下载,正常显示!
上述只是我的经历,本人初学,若有不懂参考高手文章:
Linux移植随笔:http://blog.csdn.net/glorin/article/details/6527598
移植tslib到开发板及部分问题解决 :http://blog.csdn.net/subfate/article/details/6319834