设为首页 加入收藏

TOP

Linux下交叉编译安装tslib-1.4出错及解决方法
2014-11-24 07:56:36 来源: 作者: 【 】 浏览:0
Tags:Linux 交叉 编译 安装 tslib-1.4 出错 解决 方法

首先下载tslib-1.4.tar.gz


解压:tar xzvf tslib-1.4tzr.gz


进入tslib目录


cd tslib


1.执行./autogen.sh


提示错误一:


./autogen.sh: 4: autoreconf: not found


解决方法:sudo apt-get install autoconf automake libtool


2.执行./configure --host=arm-linux --prefix=/usr/local/tslib


提示错误二:


ts_test.o(.text+0x218): In function `main':


: undefined reference to `rpl_malloc'


fbutils.o(.text+0x234): In function `open_framebuffer':


: undefined reference to `rpl_malloc'


collect2: ld returned 1 exit status


make[2]: *** [ts_test] Error 1


make[2]: Leaving directory `/home/gfpeak/Desktop/tslib/tests'


make[1]: *** [all-recursive] Error 1


make[1]: Leaving directory `/home/gfpeak/Desktop/tslib'


make: *** [all] Error 2


解决方法是在编译的时候 ./configure 后面的参数没有设置对,正确设置如下:


./configure --prefix=/usr/local/tslib/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes


3.执行make


4.执行sudo make install


】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
分享到: 
上一篇Linux 驱动mmap操作 下一篇Linux下关于keepalive的内核参数

评论

帐  号: 密码: (新用户注册)
验 证 码:
表  情:
内  容:

·在 Redis 中如何查看 (2025-12-26 03:19:03)
·Redis在实际应用中, (2025-12-26 03:19:01)
·Redis配置中`require (2025-12-26 03:18:58)
·Asus Armoury Crate (2025-12-26 02:52:33)
·WindowsFX (LinuxFX) (2025-12-26 02:52:30)