1、 解压tslib1.4并进入其目录,创建编写配置文件:
vim configTslib14.sh文件内容:
#!/bin/sh
make distclean
echo "ac_cv_func_malloc_0_nonnull=yes">arm-linux.cache
CC=/usr/local/arm/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-gcc
./configure -host=arm-none-linux-gnueabi -prefix=/home/kang/work/Qt/Qt_Install/tslib1.4 -cache-file=arm-none-linux-gnueabi.cache
make && make install
注意prefix,host,cache前面的“-”,一定要用英文输入方式写入,复制本文档,尽量自己手敲这三个符号。
如果提示错误:undefined reference to `rpl_malloc’
进入源码tslib-1.4,找到config.h.in找到最下面将:#undef malloc改为 :#undef rpl_malloc