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

Android32位构建环境配置
本文介绍如何配置Android项目的32位构建环境,包括所需的软件包如Git、JDK5.0、flex等,以及特定于32位系统的安装指令。文章还对比了32位与64位系统下所需依赖包的不同。
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: 没有那个文件或目录
    

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值