分类: LINUX
2011-10-21 11:12:37
1.首先进行相关资源的下载,具体步骤和方法参照
http://
2.进行编译
遇到的问题---1:
Android编译问题:Only 64-bit build environments are supported beyond f...
解决方法:
Checking build tools versions...
build/core/main.mk:76:************************************************************
build/core/main.mk:77: You are attemptingto build on a 32-bit system.
build/core/main.mk:78: Only 64-bit buildenvironments are supported beyond froyo/2.2.
build/core/main.mk:79:************************************************************
build/core/main.mk:80: *** stop。停止。
分析及解决:
http://archive.cnblogs.com/a/1909930/
http://www.cnblogs.com/fantaisie/archive/2010/12/24/1916281.html
build/core/main.mk
ifeq ($(BUILD_OS),linux)
build_arch := $(shell uname -m)
---ifneq (64,$(findstring64,$(build_arch)))
+++ifneq (i686,$(findstring i686,$(build_arch)))
$(warning
************************************************************)
$(warning You are attempting to build on a 32-bit system.)
$(warning Only 64-bit build environments are supported beyond
froyo/2.2.)
(--- means delete that line, +++ meansadd that line)
and change the code infour mk files below from “+=-m64”to “+=-m32”
external/clearsilver/cgi/Android.mk
external/clearsilver/java-jni/Android.mk
external/clearsilver/util/Android.mk
external/clearsilver/cs/Android.mk
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32
遇到的问题---2:
关于 arm-eabi-4.4.3 version `GLIBC_2.11' not found
解决方法:
系统版本: Description: Ubuntu 9.10
Android版本: android-2.3.4_r1
question :[code]prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not found (required by prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc)[/code]修改方法:
mxj@mxj-desktop:~/android-2.3.4_r1$cd cd prebuilt/linux-x86/toolchain/
mxj@mxj-desktop:~/android-2.3.4_r1$mv arm-eabi-4.4.3 to arm-eabi-4.4.3.old
mxj@mxj-desktop:~/android-2.3.4_r1$ ln -s arm-eabi-4.4.0 arm-eabi-4.4.3
reference:
[url]http://blog.csdn.net/zhenyongyuan123/article/details/6079717[/url]
[url][/url]
[url]http://0123.blog.163.com/blog/static/478831201061214128901/[/url]
or:
modify file build/core/combo/TARGET_linux-arm.mk line:47
from prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
to prebuilt/$(HOST_PREBUILT_TAG)/toolchain/arm-eabi-4.4.0/bin/arm-eabi-