ubuntu 10.10 32bit 到64bit环境 build android source 当注意Required Packages 否则极可能编译不成功

ubuntu 10.10 32bit 到64bit环境 build android source 应注意Required Packages 否则极可能编译不成功
The Android build requires a 32-bit build environment as well as some other tools:
  • Required Packages:
    • Git, JDK, flex, and the other packages as listed above in the i386 instructions:
    • JDK 5.0, update 12 or higher.Java 6 is not supported, because of incompatibilities with @Override.
    • Pieces from the 32-bit cross-building environment
$ sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev
  • Set the system to use the right version of java by default:

    $ sudo update-java-alternatives -s java-1.5.0-sun

注意:32 bit Required Packages 为

 git-core gnupg sun-java5-jdk flex bison gperf build-essential zip curl zlib1g-dev  libsdl-dev libesd0-dev libwxgtk2.6-dev  libncurses5-dev  

而64 bit 下的  Required Packages 为 git-core gnupg flex bison gperf build-essential zip curl sun-java5-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev

  32bit与64bit下的依赖包 不同之处在于橙色与红色部分

  可能导致错误情况:

bin/bash: 第 0 行: cd: sdk/layoutopt/app/src/resources: 没有那个文件或目录