Android系统开发编译环境配置
来源:互联网 发布:淘宝运营直通车教程 编辑:程序博客网 时间:2024/06/06 03:48
主机系统:Ubuntu9.04
(1)安装如下软件包
sudo apt-get install git-core
sudo apt-get install gnupg
sudo apt-get install sun-java5-jdk
sudo apt-get install flex
sudo apt-get install bison
sudo apt-get install gperf
sudo apt-get install libsdl-dev
sudo apt-get install libesd0-dev
sudo apt-get install build-essential
sudo apt-get install zip
sudo apt-get install curl
sudo apt-get install libncurses5-dev
sudo apt-get install zlib1g-dev
android编译对java的需求只支持jdk5.0低版本,jdk5.0 update 12版本和java 6不支持。
(2)下载repo工具
curl http://android.git.kernel.org/repo >/bin/repo
chmod a+x /bin/repo
(3)创建源代码下载目录:
mkdir /work/android-froyo-r2
(4)用repo工具初始化一个版本(以android2.2r2为例)
cd /work/android-froyo-r2
repo init -u git://android.git.kernel.org/platform/manifest.git -b froyo
初始化过程中会显示相关的版本的TAG信息,同时会提示你输入用户名和邮箱地址,以上面的方式初始化的是android2.2 froyo的最新版本,
android2.2本身也会有很多个版本,这可以从TAG信息中看出来,当前froyo的所有版本如下:
* [new tag] android-2.2.1_r1 -> android-2.2.1_r1
* [new tag] android-2.2_r1 -> android-2.2_r1
* [new tag] android-2.2_r1.1 -> android-2.2_r1.1
* [new tag] android-2.2_r1.2 -> android-2.2_r1.2
* [new tag] android-2.2_r1.3 -> android-2.2_r1.3
* [new tag] android-cts-2.2_r1 -> android-cts-2.2_r1
* [new tag] android-cts-2.2_r2 -> android-cts-2.2_r2
* [new tag] android-cts-2.2_r3 -> android-cts-2.2_r3
这样每次下载的都是最新的版本,当然我们也可以根据TAG信息下载某一特定的版本如下:
repo init -u git://android.git.kernel.org/platform/manifest.git -b android-cts-2.2_r3
(5)下载代码
repo sync
froyo版本的代码大小超过2G,漫长的下载过程。
(6)编译代码
cd /work/android-froyo-r2
make
本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/jiajie961/archive/2010/11/04/5987106.aspx
- Android系统开发编译环境配置
- Android系统开发编译环境配置
- Android系统开发编译环境配置
- Android系统开发编译环境配置
- Ubuntu系统Android 编译环境配置搭建
- Android系统开发编译环境配置 (感觉好经典的系列)(其一)
- Android系统开发编译环境配置 (感觉好经典的系列)(其二)
- Android系统开发编译环境配置 (感觉好经典的系列)(其三)
- Android系统开发编译环境配置 (感觉好经典的系列)(其四)
- ubuntu10.04系统android开发环境配置
- ubuntu10.04系统android开发环境配置
- Ubuntu系统下android开发环境配置
- Ubuntu系统下配置Android开发环境
- Android系统编译环境
- android系统编译环境
- Android编译环境配置
- Android编译环境配置
- Android编译环境配置
- linux下配置tomcat 虚拟主机的方法
- Qt中的日期转换小记
- 有时心情总是那么的沉闷
- (一)再见了,我亲密的战友们 人一口福
- 泛型
- Android系统开发编译环境配置
- Directshow的视频捕捉
- 创建一个新的Android产品项目
- Iptables开放22,53,80端口
- android编译系统makefile(Android.mk)写法.txt
- java第十五天 类加载器
- 20110330-3.3.2-关键概念-安全的泛型编程
- Libgdxi引擎初窥(一)
- RRDTool 入门攻略(一)