tslib交叉编译

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

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值