1、tslib1.4移植
1.1.1、tslib1.4源码下载地址
1.1.2、解压tslib1.4源码:tar -zxvf tslib-1.4.tar.gz
1.1.3、执行命令:./autogen.sh 若提示./autogen.sh: 4: ./autogen.sh: autoreconf: not found错误,
则autoconf工具没有安装:sudo apt-get install autoconf automake libtool。
1.1.4、echo “ac_cv_func_malloc_0_nonnull=yes” > tmp.cache
1.1.5、mkdir /opt/tslib tslib的安装目录
1.1.6、./configure --prefix=/opt/tslib --host=arm-none-linux-gnueabi --cache-file=arm-none-linux-gnueabi.cache ac_cv_func_malloc_0_nonnull=yes
配置完成之后自动生成一个Makefile
1.1.7、make 编译
若出现如下错误:
ts_test.o: In function main': ts_test.c:(.text+0x51c): undefined reference to
rpl_malloc’
fbutils.o: In function open_framebuffer'
QT移植(tslib1.4、qt5.3.2、ubuntu14.04)
最新推荐文章于 2023-10-13 17:19:52 发布