Chinaunix首页 | 论坛 | 博客
  • 博客访问: 181473
  • 博文数量: 42
  • 博客积分: 2520
  • 博客等级: 少校
  • 技术积分: 440
  • 用 户 组: 普通用户
  • 注册时间: 2009-05-18 09:54
文章分类
文章存档

2011年(1)

2010年(13)

2009年(28)

我的朋友

分类: LINUX

2009-07-02 20:35:26

#export PREFIX=/path_to_your_tslib_1.4_dir
#export CC=/path/to/your/cross-compiler-bin-dir
/*
autogen.sh is an important .sh file,it produce ./configure file according to current env setting
*/
#./autogen.sh
错误现象:
./autogen.sh: 9: autoreconf: not found
解决办法:#sudo apt-get install autoconf
错误现象:Can't exec "automake": 没有该文件或目录 at /usr/bin/autoreconf line 183
解决办法:#sudo apt-get install automake
错误现象:configure.ac:25: error: possibly undefined macro: AC_DISABLE_STATIC
解决办法:#
sudo apt-get install libtool

#echo "ac_cv_func_malloc_0_nonnull=yes" >arm-none-linux-gnueabi.cache
   
/*(it is better to see what parameter that the ./configure program take,use "./configure --help")
*you can add "--enable-debug"([default=no]),and/or "--enable-static"([default=no])
*/

#./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --cache-file=arm-none-linux-gnueabi.cache
错误现象:configure: error: C++ compiler cannot create executables
解决办法:#sudo apt-get install build-essential


#make
错误:undefined reference to rpl_malloc
解决办法(2种):
    * configure的时候加上--with-gnu-ld这个参数
    * 或者在config.h里加上#undef rpl_malloc

#make install

阅读(1762) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~