- 论坛徽章:
- 0
|
官网上下载了android-toolchain-20081019.tar.bz2
从源代码编译cross tooldebian从3.0升级到了5.0
问题不少首先碰到的是makeinfo missing的问题
但我装了texinfo 版本4.11
查看binutils-2.17/congifure这么一段
要求4.4版本以上,但似乎正则表达式有点问题
case " $build_configdirs " in
*" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
*)
# For an installed makeinfo, we require it to be from texinfo 4.4 or
# higher, else we use the "missing" dummy.
if ${MAKEINFO} --version \
| egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then
:
else
MAKEINFO="$MISSING makeinfo"
fi
;;
esac
随便改一下:
if ${MAKEINFO} --version \
| egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[1-9]|[5-9])' >/dev/null 2>&1; then
:
gcc和gdb目录同样修改configure文件
重新configure和make
出现:
app.c:566: error: array subscript is below array bounds
debian5.0的gcc版本为4.3.2,估计太高,降为target一样的4.2.1
编译通过
最后make install
安装了下面的cross tool
arm-android-eabi-addr2line arm-android-eabi-gdbtui
arm-android-eabi-ar arm-android-eabi-ld
arm-android-eabi-as arm-android-eabi-nm
arm-android-eabi-c++ arm-android-eabi-objcopy
arm-android-eabi-c++filt arm-android-eabi-objdump
arm-android-eabi-cpp arm-android-eabi-ranlib
arm-android-eabi-g++ arm-android-eabi-readelf
arm-android-eabi-gcc arm-android-eabi-run
arm-android-eabi-gcc-4.2.1 arm-android-eabi-size
arm-android-eabi-gccbug arm-android-eabi-strings
arm-android-eabi-gcov arm-android-eabi-strip
arm-android-eabi-gdb
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/98581/showart_1960627.html |
|