Chinaunix首页 | 论坛 | 博客
  • 博客访问: 479442
  • 博文数量: 130
  • 博客积分: 2111
  • 博客等级: 大尉
  • 技术积分: 1373
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-28 09:55
个人简介

IT民工

文章分类

全部博文(130)

文章存档

2021年(1)

2019年(1)

2017年(3)

2014年(1)

2013年(3)

2012年(2)

2011年(3)

2010年(2)

2009年(114)

分类: LINUX

2009-08-31 12:50:41

tslib编译出错解决
2008-01-05 11:25:18
进tslib-1.3目录
运行命令:./autogen.sh,出错如下:
./autogen.sh: 4: autoreconf: not found
我的系统是ubuntu 7.04 , 到网上搜了一把,可能是automake没有安装
于是:apt-get install automake
  再试:./autogen.sh
出现错误如下:
configure.ac:26: error: possibly undefined macro: AC_ENABLE_SHARED
configure.ac:27: error: possibly undefined macro: AC_LIBTOOL_DLOPEN
configure.ac:28: error: possibly undefined macro: AC_PROG_LIBTOOL

解决:apt-get install libtool
再./autogen.sh,呵呵,正确通过!
接下来:

make clean

 ./configure --host=arm-linux --cache-file=arm-linux.cache

make
又再次出错:
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] 错误 1
make[2]: Leaving directory `/home/lwx/linux_arm/devlop/qt/libsrc_qt/tslib-07072006/tests'
make[1]: *** [all-recursive] 错误 1
make[1]: Leaving directory `/home/lwx/linux_arm/devlop/qt/libsrc_qt/tslib-07072006'
make: *** [all] 错误 2

根据文档:
http://blog.csdn.net/absurd/archive/2006/03/31/646446.aspx
所说,作如下操作:
make clean

 echo "ac_cv_func_malloc_0_nonnull=yes" > arm-linux.cache

./configure --prefix=/home/lwx/linux_arm/devlop/qt/libsrc_qt/tslib-07072006/target --host= arm-linux --cache-file= arm-linux.cache

make
哈哈。。。。。通过,tslib编译搞定!
留个记号!
阅读(1246) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~