tslib-master移植

移植Tslib
1 下载源码https://github.com/kergoth/tslib
tslib-master.zip


2 解压,cd tslib-master
unzip tslib-master.zip
3 生成configure
./autogen.sh
出错:
./autogen.sh: 3: autoreconf: not found
解决:
apt-get install autoconf
./autogen.sh
出错:
Can't exec "libtoolize": No such file or directory at /usr/bin/autoreconf line 196.
Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 196.
configure.ac:24: error: possibly undefined macro: AC_DISABLE_STATIC
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.
configure.ac:25: error: possibly undefined macro: AC_ENABLE_SHARED
configure.ac:26: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:27: error: possibly undefined macro: AC_PROG_LIBTOOL
autoreconf: /usr/bin/autoconf failed with exit status: 1
解决:
apt-get install libtool
./autogen.sh
4 配置,生成Makefile
./configure --host=arm-linux --prefix=`pwd`/install --enable-debug=no


5 编译
make


6 安装
make install
  在指定的安装目录下生成/bin  /etc  /lib /include文件夹,并放入相应的文件。如果
相应的文件夹已经在,则把相应的文件放入对应的文件夹。


7 运行测试程序,需要配置如下参数
export TSLIB_TSDEVICE=/dev/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_PLUGINDIR=/lib/ts
export TSLIB_CALIBFILE=/etc/pointercal


8 运行ts_calibrate出错No raw modules loaded.
修改etc\ts.conf第一句# module_raw input去掉屏蔽


9 运行ts_test前要先运行ts_calibrate进行校准
  • 2
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

奋斗-永无止境

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值