Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1576513
  • 博文数量: 204
  • 博客积分: 2215
  • 博客等级: 大尉
  • 技术积分: 4426
  • 用 户 组: 普通用户
  • 注册时间: 2011-06-06 08:03
个人简介

气质,源于心灵的自信!

文章存档

2018年(1)

2017年(1)

2016年(1)

2015年(18)

2014年(20)

2013年(30)

2012年(119)

2011年(14)

分类: LINUX

2012-01-02 15:50:03

安装,下载,编译环境为ubuntu 11.04
<1>安装git
 $sudo apt-get install git-core
<2>安装curl
 $sudo apt-get install curl
<3>安装repo

$ mkdir ~/bin
$ PATH
=~/
bin:$PATH
$ curl > ~/bin/repo
$ chmod a+~/bin/repo

<4>初始化repo client
$ mkdir android4.0
$ cd android4.0
$ repo init -u
下载最新版本的全部代码。也可以输入-b指定下载的分支
如:$ repo init -u -b android-4.0.1_r1
按照提示输入用户名和邮箱。
<5>下载源码
$ repo sync

开始同步源码,开始下载源码,下载的时间依你的网速而定。

下载时有时会出现错误,只要重新repo sync即可

下载后编译该系统

<1>初始化环境。

$ source build/envsetup.sh 或者是$ . build/envsetup.sh

<2>选择一个编译的目标,下面的命令是为模拟器而编译的。
$ lunch full-eng 其中的选项注释如下:
编译名字 设备 注释
full emulator    fully configured with all languages, apps, input methods
full_maguro maguro     full build running on Galaxy Nexus GSM/HSPA+ ("maguro")
full_panda panda     full build running on PandaBoard ("panda")
编译类型 注释
user limited access; suited for production
userdebug like "user" but with root access and debuggability; preferred for   debugging
eng development configuration with additional debugging tools

<2>打开4个线程开始编译,这样可以加快编译

$ make -j4

阅读(2433) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~