32bit Ubuntu 10.10环境下Android Froyo编译问题解决
shell>repo init -u git://android.git.kernel.org/platform/manifest.git
shell>repo sync
shell>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 (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
endif
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
3、如再有问题请确保一下软件已经安装
bison,jdk6,g++,flex,libncurses-dev,gperf,zlib1g-dev
4、shell>make
32bit Ubuntu 10.10环境下Android Froyo编译问题解决
最新推荐文章于 2024-08-19 21:19:46 发布