ubuntu下编译android代码
来源:互联网 发布:淘宝商城的推广 编辑:程序博客网 时间:2024/05/17 13:40
Installing the JDK
The Sun JDK is no longer in Ubuntu's main package repository. In order to download it, you need to add the appropriate repository and indicate to the system which JDK should be used.
Java 6: for Gingerbread and newer
$ sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"$ sudo apt-get update$ sudo apt-get install sun-java6-jdk
Installing required packages (Ubuntu 10.04 -- 11.10)
You will need a 64-bit version of Ubuntu. Ubuntu 10.04 is recommended.Building using a newer version of Ubuntu is currently only experimentallysupported and is not guaranteed to work on branches other than master.
$ sudo apt-get install git-core gnupg flex bison gperf build-essential \ zip curl zlib1g-dev libc6-dev lib32ncurses5-dev ia32-libs \ x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev \ libgl1-mesa-dev g++-multilib mingw32 tofrodos python-markdown \ libxml2-utils xsltproc
On Ubuntu 10.10:
$ sudo ln -s /usr/lib32/mesa/libGL.so.1 /usr/lib32/mesa/libGL.so
On Ubuntu 11.10:
$ sudo apt-get install libx11-dev:i386
Setting up ccache
You can optionally tell the build to use the ccache compilation tool.Ccache acts as a compiler cache that can be used to speed-up rebuilds.This works very well if you do "make clean" often, or if you frequentlyswitch between different build products.
Put the following in your .bashrc or equivalent.
export USE_CCACHE=1
The suggested cache size is 50-100GB.You will need to run the following command once you have downloadedthe source code:
prebuilts/misc/linux-x86/ccache/ccache -M 50G
- ubuntu下编译android代码
- Ubuntu下 android 编译
- 在ubuntu 下编译代码
- Ubuntu下编译Android源码
- 在Ubuntu下编译Android
- ubuntu下android内核编译
- 在Ubuntu下编译Android
- Ubuntu下编译Android源代码
- Ubuntu下编译Android源代码
- ubuntu下编译android源代码
- ubuntu下编译android源码
- Ubuntu下编译android源码
- ubuntu 11.04 下载和编译Android代码
- Ubuntu 14.04编译WebRTC For Android代码
- Ubuntu 14.04编译WebRTC For Android代码
- Ubuntu下编译android的linux内核
- Ubuntu 8.04下编译Android源码全过程
- Ubuntu 8.04下编译Android源码全过程
- android拍照
- MVC模式和总结
- 网络高清时代,点亮数字生活
- 11-16查询Student中的所有学生记录,并在table中显示。
- 利用function的参数特点,进行事件绑定
- ubuntu下编译android代码
- php中session机制探究
- Mac OS X系统快捷键一览表
- Linux 上DenyHosts阻止SSH暴力攻击
- ACTIVEX_MFC_属性持久化
- C++第12周项目4——用函数解决素数、回文数等
- 数据结构——竞选海报
- C#客户端的异步操作
- 虚基类及其派生构造函数与析构函数u