Be Smart

FANTAISIE

SmartPhone - iPhone, iPad, Android

导航

[Android 問題] 64-bit Environment Required When Checking Build Tool Versions

If you meet following errors below when you try to build your source code:

 

Checking build tools versions...
build/core/main.mk:72:
************************************************************
build/core/main.mk:73: You are attempting to build on a 32-bit
system.
build/core/main.mk:74: Only 64-bit build environments are supported
beyond froyo/2.2.
build/core/main.mk:75:
************************************************************

 

 

Don’t panic, just change the code marked red in

 

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.)

 

(--- means delete that line, +++ means add that line)

 

and change the code in four 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

 

I met this problem when trying to build the source code downloaded from Google directly.

posted on 2010-12-24 18:26  FANTAISIE  阅读(1935)  评论(0编辑  收藏  举报