Ubuntu32位操作系统编译GingerBread

1. 下载编译支持包:

 

    sudo apt-get install lib64z1-dev libc6-dev-amd64 g++-multilib lib64stdc++6

 

2. 修改 build/core/main.mk文件:

 

    注释: #ifneq (64,$(findstring 64,$(build_arch)))

 

    添加: ifneq (i686,$(findstring i686,$(build_arch)))

 

3. 修改MK文件:

 

    external/clearsilver/cgi/Android.mk,

 

    external/clearsilver/java-jni/Android.mk

 

    external/clearsilver/util/Android.mk

 

    external/clearsilver/cs/Android.mk

 

    注释:# LOCAL_CFLAGS += -m64

             # LOCAL_LDFLAGS += -m64

 

    添加:LOCAL_CFLAGS += -m32

             LOCAL_LDFLAGS += -m32

你可能感兴趣的:(ubuntu,Build)