随笔-348  评论-598  文章-0  trackbacks-0

 查找资料,确定下面的修改步骤(-表示删除行,+表示添加行):

              1、修改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.)

              2、修改下列文件:
                       /external/clearsilver/cgi/Android.mk
                       /external/clearsilver/cs/Android.mk
                       /external/clearsilver/java-jni/Android.mk
                       /external/clearsilver/util/Android.mk
                     4个文件的修改策略相同,为:
                       # This forces a 64-bit build for Java6 
                        -LOCAL_CFLAGS += -m64 
                        -LOCAL_LDFLAGS += -m64 
                        +LOCAL_CFLAGS += -m32 
                        +LOCAL_LDFLAGS += -m32

        接下来的编译可能会遇到很多因为缺少相应模块而产生的错误,请首先安装下列软件模块:

                        bison
                        sun-java6-jdk
                        g++ (build-essential)
                        zlib1g-dev
                        flex
                        libncurses-dev
                        gperf

然后,就是make之后漫长的等待...

 



---------------------------------------------------------
专注移动开发

Android, Windows Mobile, iPhone, J2ME, BlackBerry, Symbian
posted on 2011-01-10 21:32 TiGERTiAN 阅读(579) 评论(0)  编辑  收藏 所属分类: AndroidLinux

只有注册用户登录后才能发表评论。


网站导航: