64位虚拟机编译android出错的解决方法
修改:android2.3.4_GB_T34/build/core/main.mk#ifneq (64,$(findstring 64,$(build_arch))) //打开这个注释ifneq (i686,$(findstring i686,$(build_arch))) //将这行注释起来$(warning **********************
修改:
android2.3.4_GB_T34/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 ************************************************************)
修改/android2.3.4_GB_T34/external/clearsilver/目录下
cgi/Android.mk:16:#LOCAL_CFLAGS += -m64
cgi/Android.mk:17:#LOCAL_LDFLAGS += -m64
cgi/Android.mk:21:# uses a 32-bit toolchain that can't handle -m64
cs/Android.mk:12:#LOCAL_CFLAGS += -m64
cs/Android.mk:13:#LOCAL_LDFLAGS += -m64
cs/Android.mk:17:# uses a 32-bit toolchain that can't handle -m64
java-jni/Android.mk:37:#LOCAL_CFLAGS += -m64
java-jni/Android.mk:38:#LOCAL_LDFLAGS += -m64
java-jni/Android.mk:42:# uses a 32-bit toolchain that can't handle -m64
util/Android.mk:21:#LOCAL_CFLAGS += -m64
util/Android.mk:22:#LOCAL_LDFLAGS += -m64
util/Android.mk:26:# uses a 32-bit toolchain that can't handle -m64
将上面这些注释去掉
并且将m32注释起来
cgi/Android.mk:18:LOCAL_CFLAGS += -m32
cgi/Android.mk:19:LOCAL_LDFLAGS += -m32
cs/Android.mk:14:LOCAL_CFLAGS += -m32
java-jni/Android.mk:39:LOCAL_CFLAGS += -m32
java-jni/Android.mk:40:LOCAL_LDFLAGS += -m32
util/Android.mk:23:LOCAL_CFLAGS += -m32
util/Android.mk:24:LOCAL_LDFLAGS += -m32
更多推荐
所有评论(0)