1、下载tslib-1.16.tar.bz2,链接地址:https://github.com/kergoth/tslib/releases/download/1.16/tslib-1.16.tar.bz2
2、解压tar -jxf tslib-1.16.tar.bz2
3、cd tslib-1.16/
4、创建安装目录mkdir tmp
5、./autogen.sh
6、./configure --host=arm-linux --prefix=$PWD/tmp CC=/home/zzy/arm-cortex_a8-linux-gnueabi-4.9.4/bin/arm-linux-gcc
其中
--host=arm-linux指定平台
--prefix=$PWD/tmp指定安装目录
CC=/home/zzy/work/tool/tool_chain/arm-cortex_a8-linux-gnueabi-4.9.4/bin//arm-linux-gcc指定交叉编译器
7、make && make install
8、将交叉编译好文件拷贝到根文件系统
cp * /home/mark/work/nfs/qt -rd
修改tslib目录下的ts.config
# Access plugins
################
# Uncomment if you wish to use the linux input layer event interface
module_raw input
# For other driver modules, see the ts.conf man page
# Filter plugins
################
# Uncomment if first or last samples are unreliable
# module skip nhead=1 ntail=1
# Uncomment if needed for devices that measure pressure
module pthres pmin=1
# Uncomment if needed
# module debounce drop_threshold=40
# Uncomment if needed to filter spikes
# module median depth=5
# Uncomment to enable smoothing of fraction N/D
# module iir N=6 D=10
# Uncomment if needed
# module lowpass factor=0.1 threshold=1
# Uncomment if needed to filter noise samples
module dejitter delta=100
# Uncomment and adjust if you need to invert an axis or both
# module invert x0=800 y0=480
# Uncomment to use ts_calibrate's settings
module linear