- 论坛徽章:
- 0
|
#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: [color="#c60a00"]autoreconf: [color="#c60a00"]not [color="#c60a00"]found
解决办法:#sudo apt-get install autoconf
错误现象:Can't exec "automake": 没有该文件或目录 at /usr/bin/autoreconf line 183[color="#c60a00"]
解决办法:#sudo apt-get install automake
错误现象:[color="#c60a00"]configure.ac:25: [color="#c60a00"]error: [color="#c60a00"]possibly [color="#c60a00"]undefined [color="#c60a00"]macro: [color="#c60a00"]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
#make
错误:undefined reference to rpl_malloc
解决办法(2种):
* configure的时候加上--with-gnu-ld这个参数
* 或者在config.h里加上#undef rpl_malloc
#make install
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/96977/showart_1984308.html |
|