触摸屏tslib库交叉编译在arm上运行进行屏幕校准测试

在tslib的官方github(下面的网址)上选择一个版本下载即可。

https://github.com/libts/tslib/tags

本次使用的版本为:tslib-1.22.tar.gz

下载完成后,在ubuntu14.04进行解压

tar xzvf tslib-1.22.tar.gz

配置交叉编译器工具和tslib的编译输出路径

./configure --host=arm-hisiv400-linux ac_cv_func_malloc_0_nonnull=yes --cache-file=arm-linux.cache --prefix=./arm-tslib

--host=arm-hisiv400-linux为配置使用的交叉编译工具的名字

--prefix=./arm-tslib为配置交叉编译后库和可执行文件输出的路径

然后这个库用在Qt上面,需要和Qt源码编译时一起使用

猜你喜欢

转载自blog.csdn.net/qq_40170041/article/details/131695741