#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
阅读(1788) | 评论(0) | 转发(0) |