tslib移植出现的小问题

1. 编译:
$export CC=/work/ebook/arm-linux-4.1.1/bin/arm-linux-gcc      //toolchain路径
$./autogen.sh   //生成config文件
$export PATH=$PATH:/work/ebook/arm-linux-4.1.1/bin/
$echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
$./configure  --cache-file=arm-linux.cache --enable-inputapi=no --prefix=/work/ts_lib_bin --host=arm-linux
$make

2.设备上运行
一些路径设置:
#export QWS_MOUSE_PROTO=TPanel:/dev/input/event0
#export T_ROOT=/mnt/ts_lib_bin
#export LD_LIBRARY_PATH=$T_ROOT/lib
#export TSLIB_CONSOLEDEVICE=none
#export TSLIB_FBDEVICE=/dev/fb0
#export TSLIB_TSDEVICE=/dev/input/event0
#export TSLIB_CALIBFILE=$T_ROOT/etc/pointercal
#export TSLIB_CONFFILE=$T_ROOT/etc/ts.conf
#export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
#./ts_calibrate

问题1:
./ts_calibrate: error while loading shared libraries: libts-0.0.so.0: cannot open shared object file: Error 40
./ts_calibrate: error while loading shared libraries: libts-0.0.so.0: cannot ope
n shared object file: No such file or directory
解决办法:
#echo $LD_LIBRARY_PATH  //查看lib路径,
#export LD_LIBRARY_PATH=$T_ROOT/lib

问题2:
ts_open: No such file or directory
解决办法:
#export TSLIB_TSDEVICE=/dev/input/event0   //触摸屏设备路径

问题3:
Couldnt open tslib config file: No such file or directory ts_config: Illegal seek
解决办法:
#export TSLIB_CONFFILE=$T_ROOT/etc/ts.conf

问题4:
Couldnt load module pthres
No raw modules loaded.
ts_config: Success
解决办法:
#export TSLIB_PLUGINDIR=$T_ROOT/lib/ts
问题5:
No raw modules loaded.
Ts_config: No such file or directory
解决办法:
修改$T_ROOT/etc/ts.conf, 至少放开一个module_raw, 并去掉前面空格

问题6:

通过autogen生成过配置文件:configure,移到另一台机器,重新运行./configure出错,解决办法:

重新设置gcc路径,如:

$export CC=/work/ebook/arm-linux-4.1.1/bin/arm-linux-gcc      //toolchain路径

$rm arm-linux.cache

$export PATH=$PATH:/work/ebook/arm-linux-4.1.1/bin/
$echo "ac_cv_func_malloc_0_nonnull=yes" >arm-linux.cache
$./configure  --cache-file=arm-linux.cache --enable-inputapi=no --prefix=/work/ts_lib_bin --host=arm-linux
$make

$make install

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值