一. 什么是QT
二. tslib移植和测试
2.1. 什么是tslib
2.2. 部署tslib
2.2.1. 获取tslib-1.4源文件
a. 下载地址:https://github.com/kergoth/tslib#setup-and-configure-tslib
b. tar -xvf tslib-1.4.tar.gz
root@ubuntu:~/qt_porting# ls tslib tslib-1.4.tar.gz root@ubuntu:~/qt_porting#
2.2.2.
a. cd tslib
b. ./autogen.sh
c. echo "ac_cv_func_malloc_0_nonnull=yes">arm-linux.cache
d. mkdir /opt/tslib
e. ./configure --prefix=/opt/tslib --host=arm-linux --cache-file=arm-linux.cache
PS: ./autogen.sh时报错:./autogen.sh: 4: autoreconf: not found,是因为系统中没有安装autoconf工具,解决方法:先让ubuntu能上网,然后执行:sudo apt-get install autoconf automake libtool
2.2.3.
# make
# make install
root@ubuntu:/opt# ls tslib root@ubuntu:/opt# cd tslib/ root@ubuntu:/opt/tslib# ls bin etc include lib root@ubuntu:/opt/tslib#
# vi /usr/local/tslib/etc/ts.conf
module_raw input
module pthres pmin=1
module variance delta=30
module dejitter delta=100
module linear
# Uncomment if you wish to use the linux input layer event interface module_raw input # Uncomment if you‘re using a Sharp Zaurus SL-5500/SL-5000d # module_raw collie # Uncomment if you‘re using a Sharp Zaurus SL-C700/C750/C760/C860 # module_raw corgi # Uncomment if you‘re using a device with a UCB1200/1300/1400 TS interface # module_raw ucb1x00 # Uncomment if you‘re using an HP iPaq h3600 or similar # module_raw h3600 # Uncomment if you‘re using a Hitachi Webpad # module_raw mk712 # Uncomment if you‘re using an IBM Arctic II # module_raw arctic2 module pthres pmin=1 module variance delta=30 module dejitter delta=100 module linear
原文:https://www.cnblogs.com/linux-37ge/p/10306583.html