设为首页 加入收藏

TOP

TSLIB在S3C2440上面的移植
2014-11-24 07:56:34 来源: 作者: 【 】 浏览:0
Tags:TSLIB S3C2440 面的 移植

在LinuxIDC.com的1号FTP服务器上面下载最新的TSLIB,文件名kergoth-tslib-1.0-89-g412d99d.tar.gz


在本地解压缩。


./autogen.sh


./configure --host=arm-linux --prefix=/root/Desktop/arm_root/root_qtopia/myexe/tslib/


注意,--host说明交叉编译的目标结构,--prefix指定make install后库文件以及应用程序的存放位置。这个最好制定,不然就全被放到默认的地方,貌似是/usr....


make


编译库文件以及测试程序


make install


必须要用make install后bin目录里面的文件运行,tests目录下面的可执行文件是不能运行的,会出现下面错误。


./ts_calibrate: cd: line 1: can't cd to /root/Desktop/tslib/kergoth-tslib-412d99d/tests
./ts_calibrate: eva l: line 1: arm-linux-gcc: not found


这样刚刚指定的--prefix目录下面就会多出bin、etc、include、lib四个文件


需要将指定库文件位置


export LD_LIBRARY_PATH=/myexe/tslib/lib


不然会出现下面提示。


error while loading shared libraries: libts-1.0.so.0: cannot open shared object file: No such file or directory


其次是指定触摸设备名、配置文件、插件目录、校准文件名


export TSLIB_TSDEVICE=/dev/input/event0
export TSLIB_CONFFILE=/myexe/tslib/etc/ts.conf
export TSLIB_PLUGINDIR=/myexe/tslib/lib/ts
export TSLIB_CALIBFILE=/myexe/tslib/calibfile
#export TSLIB_CONSOLEDEVICE=none
#export TSLIB_FBDEVICE=/dev/fb0


其中ts.conf是配置文件,需要将里面的module pthres pmin=1注释掉,把module_raw input的注释打开。


这样运行bin下面的ts_calibrate开始校准吧~~~~


本文要用到的文件下载在Linux公社(LinuxIDC.com)的1号服务器。


密码:www.muu.cc


在2011年LinuxIDC.com\2月\TSLIB在S3C2440上面的移植\


具体下载方法见http://www.linuxidc.net/thread-1186-1-1.htmlhttp://www.linuxidc.net/thread-1189-1-1.html


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Linux 内核对VLAN的处理 下一篇Qt phonon多媒体框架

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·在 Redis 中如何查看 (2025-12-26 03:19:03)
·Redis在实际应用中, (2025-12-26 03:19:01)
·Redis配置中`require (2025-12-26 03:18:58)
·Asus Armoury Crate (2025-12-26 02:52:33)
·WindowsFX (LinuxFX) (2025-12-26 02:52:30)