32位机器Ubuntu系统编译android 内核注意修改成64位

$ sudo apt-get install openjdk-6-jdk

$ sudo update-java-alternatives -s java-6-openjdk

$ export PATH=/usr/lib/jvm/java-6-openjdk/bin:$PATH

$ java –version

// should be java version “1.6.0_18”

 

1. Modify build/core/ main.mk

    Change line 75 to : ifneq( i686 ,$(findstring i686 ,$(build_arch)))

2. Modify clearsilver

    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_CFLAGS += -m32

LOCAL_LDFLAGS += -m64 改成 LOCAL_LDFLAGS += -m32

 

3. Change system/media/opensles/libopensles/IAndroidEffect. cpp

    to system/media/opensles/libopensles/IAndroidEffect. c

    also modify system/media/opensles/libopensles/Android.mk

将里面的 IAndroidEffect. cpp 改成 IAndroidEffect. c

4. link ccache (for build windows sdk under linux)

    $ ln -sv prebuild/linux-x86/ccache/ccache prebuild/windows/ccache/ccache

 

 

 

You are attempting to build with the incorrect version of java.

export PATH=/usr/lib/jvm/java-6-openjdk/bin:$PATH

你可能感兴趣的:(java,android,windows,ubuntu,Build,Path)