交叉编译tslib1.4

来源:互联网 发布:python 安装flickrapi 编辑:程序博客网 时间:2024/06/07 19:46

1、 解压tslib1.4并进入其目录,创建编写配置文件:
vim configTslib14.sh文件内容:

#!/bin/shmake distclean echo "ac_cv_func_malloc_0_nonnull=yes">arm-linux.cacheCC=/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