在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源码编译时一起使用