基于32bit系统编译Android 2.3

从官网下载android2.3源码,make,发现报错:

 You are attempting to build on a 32-bit system
Only 64-bit build environments are supported beyond froyo/2.2.

 

明明2.2 之前编译过,分析,默认编译为64位,按照官网给出的方案,修改如下:

 

$ vim build/core/main.mk
#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.)
$(warning ************************************************************)
$(error stop)
endif


external/clearsilver/cgi/Android.mk,
external/clearsilver/java-jni/Android.mk,
external/clearsilver/util/Android.mk,
external/clearsilver/cs/Android.mk

#LOCAL_CFLAGS += -m64
#LOCAL_LDFLAGS += -m64
LOCAL_CFLAGS += -m32
LOCAL_LDFLAGS += -m32


jdk 使用1.6的,设置参考我之前的2.2编译相关的文章

 

然后make

你可能感兴趣的:(jdk,android,vim,Build)