当前位置: > Ubuntu >

ubuntu-android--You are attempting to build on ...

时间:2015-10-08 12:39来源:linux.it.net.cn 作者:IT
root@tianbaoxing-virtual-machine:/home/Android# make 
============================================ 
PLATFORM_VERSION_CODENAME=REL 
PLATFORM_VERSION=2.3.1 
TARGET_PRODUCT=generic 
TARGET_BUILD_VARIANT=eng 
TARGET_SIMULATOR= 
TARGET_BUILD_TYPE=release 
TARGET_BUILD_APPS= 
TARGET_ARCH=arm 
HOST_ARCH=x86 
HOST_OS=linux 
HOST_BUILD_TYPE=release 
BUILD_ID=GRH78 
============================================ 
Checking build tools versions... 
build/core/main.mk:76: ************************************************************ 
build/core/main.mk:77: You are attempting to build on a 32-bit system. 
build/core/main.mk:78: Only 64-bit build environments are supported beyond froyo/2.2. 
build/core/main.mk:79: ************************************************************ 
build/core/main.mk:80: *** stop。 停止。 

root@tianbaoxing-virtual-machine:/home/Android#

解决办法:

(1)找到build/core/main.mk文件,找到下面的代码段:

ifeq ($(BUILD_OS),linux)
build_arch := $(shell uname -m)
ifneq (64,$(findstring 64,$(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 ************************************************************)

将第三行修改成ifneq (i686,$(findstring i686,$(build_arch)))

(2)找到下面的这几个文件:

    /external/clearsilver/cgi/Android.mk

     /external/clearsilver/cs/Android.mk
     /external/clearsilver/java-jni/Android.mk

     /external/clearsilver/util/Android.mk

修改其中的代码段: LOCAL_CFLAGS += -m64

     LOCAL_LDFLAGS += -m64 

改成:

LOCAL_CFLAGS += -m32

     LOCAL_LDFLAGS += -m32



(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容