tslib出错集合

因为某些原因,又搞了下tslib和qt的移植,骤然发现还是遇到很多问题,以前搞得时候有些问题也莫名其妙,现在就总结下这次遇到的问题,方便以后解决。
1.tslib 中的segmentation fault
problem:所有的tslib测试程序 一运行 都是直接提示 segmentation fault
answer:原来是自己的ts.conf文件去掉第一行的注释的时候 忘记删除空格,删除空格就好了。

2.tslib时出现IIegal instruction
problem:./ts_calibrate时出现“IIegal instruction“
answer:是编译器的问题,内核用的是4.4.3,然后我第一次编译tslib的时候用的是4.3.2,

现在改成4.4.3就好了。

3.problem:在执行./ts_calibrate命令对触摸屏进行校正的时候,出现如下错
误:./ts_calibrate:error while loading shared libraries:libts-0.0.so.0:cannot open shared object file:Error 40
answer:库没有加入环境变量
#echo $LD_LIBRARY_PATH //查看lib路径
#export LD_LIBRARY_PATH=$T_ROOT/lib 
4.problem:
ts_open:No such file or directory
answer:
确定event0的位置是在/dev还是/dev/input,如果没有的话需要自己添加
mknod /dev/input/event0 c  13 64
#export TSLIB_TSDEVICE=/dev/event0

5.problem:
QWSTslibMouseHandlerPrivate: ts_open() failed with error: 'No such file or directory'
answer:
export QWS_MOUSE_PROTO=tslib:/dev/input/event0(确定你的event0的位置)

6.problem:
tslib的鼠标指针出现了,无法移动。
answer:
添加:export QWS_MOUSE_PROTO="Tslib:/dev/input/event0

7.
problem:
QWSTslibMouseHandlerPrivate: ts_config() failed with error: 'No such file or di'

Please check your tslib installation!
answer:还是将etc/ts.conf文件中的第二行前面的#号去掉

ps:很奇怪一件事情,就是无论是写个脚本export还是在rcS下面export,在终端查看环境

变量的时候都没有查看到。
只有在profile里面export才能在终端查看到。哪里理解出错了呢。。。。。

因为如果不在profile里export的话,/usr/local/arm/tslib/bin下的ts_calibrate无法运行,

示意找不到库,所以我在profile里export了tslib所需要的
{export TSLIB_CALIBFILE='/etc/pointercal'
export TSLIB_CONFFILE='/usr/local/arm/tslib/etc/ts.conf'
export TSLIB_PLUGINDIR='/usr/local/arm/tslib/lib/ts'
export TSLIB_ROOT='/usr/local/arm/tslib'
export TSLIB_TSDEVICE='/dev/input/event0'}
然后在自制的脚本里又export了一下,这样开机就有效果了 ,不然的话开机是无法移动鼠标

的。

原文链接:http://blog.sina.com.cn/s/blog_6410b69201014mzk.html

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值