分类: 项目管理
2010-11-23 20:57:49
代码下载的是Froyo 2.2版本的,直接make,出现错误提示:
|
You are attempting to build on a 32-bit system.
Only 64-bit build environments are supported beyond froyo/2.2
查找资料,确定下面的修改步骤(-表示删除行,+表示添加行):
1、修改build/core目录下的main.mk文件,修改策略为:
ifeq ($(BUILD_OS),linux)
build_arch := $(shell uname -m)
-ifneq (64,$(findstring 64,$(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.)
2、修改下列文件:
/external/clearsilver/cgi/.mk
/external/clearsilver/cs/.mk
/external/clearsilver/java-jni/.mk
/external/clearsilver/util/.mk
4个文件的修改策略相同,为:
# This forces a 64-bit build for Java6
-LOCAL_CFLAGS += -m64
-LOCAL_LDFLAGS += -m64
+LOCAL_CFLAGS += -m32
+LOCAL_LDFLAGS += -m32
接下来的编译可能会遇到很多因为缺少相应模块而产生的错误,请首先安装下列软件模块:
bison
jdk6
g++ (build-essential)
zlib1g-dev
flex
libncurses-dev
gperf
然后,就是make之后漫长的等待...