编译步骤
1、./autogen.sh
2、./configure --host=arm-linux --cache-file=arm-linux.cache --prefix=/opt/tslib/ ac_av_func_malloc_0_nonnull=yes
–host指定目标主机
–cache-file在 FILE 中缓存测试结果(cache test results in FILE)
–prefix指定安装目录,本机执行make install安装的目录
ac_av_func_malloc_0_nonnull=yes 有内存分配函数声明没有定义的警告时增加
3、make
4、make install
5、tar -cvf tslib.tar /opt/tslib/ 打包生产的库文件,然后在目标系统上部署。
具体configure说明查看帮助./configure --help
官网http://www.tslib.org/