移植tslib

1.移植tslib库

源码包:tslib-1.4.gz

工具链:4.1.2

1、准备工作

#mkdir  /root/build_tslib

#cd  /root/build_tslib

#tar xvfz  tslib-1.4.gz

#cd  tslib

2、配置V

#vi  ts_install.sh

编辑内容

export PATH=/usr/local/arm/4.1.2/bin:$QTDIR/bin:$PATH // 配置环境变量、有待确定

./autogen.sh // 用于生成configure

./configure  --prefix=/share/tslib  --host=arm-linux ac_cv_func_malloc_0_nonnull=yes

--enable-inputapi=yes

make&&make install //编译与安装

3、修改/share/tslib/etc目录下的tslib.conf文件,将module_rawinput前面的注释去掉,使QT支持触摸屏。

#vi /share/tslib/etc/ts.conf

修改如下

#Uncommentifyouwishtousethelinuxinputlayereventinterface

module_rawinput (去掉#且顶格)

#Uncommentifyou'reusingaSharpZaurusSL-5500/SL-5000d

#module_rawcollie

#Uncommentifyou'reusingaSharpZaurusSL-C700/C750/C760/C860

#module_rawcorgi

#Uncommentifyou'reusingadevicewithaUCB1200/1300/1400TSinterface

#module_rawucb1x00

#Uncommentifyou'reusinganHPiPaqh3600orsimilar

#module_rawh3600

#Uncommentifyou'reusingaHitachiWebpad

#module_rawmk712

#Uncommentifyou'reusinganIBMArcticI

#module_rawarctic2

modulepthrespmin=1

modulevariancedelta=30

moduledejitterdelta=100

modulelinear

交叉编译生成的/share/tslib目录全部文件将会拷贝到制作的文件系统的根目录下(如/root/rootfs)。

/******************************/ /********好好学习-天天向上*****/ /******************************/
原文地址:https://www.cnblogs.com/langdexuming/p/4197452.html