Chinaunix首页 | 论坛 | 博客
  • 博客访问: 468395
  • 博文数量: 150
  • 博客积分: 2706
  • 博客等级: 少校
  • 技术积分: 1200
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-09 11:41
文章分类

全部博文(150)

文章存档

2012年(7)

2011年(6)

2010年(68)

2009年(69)

我的朋友

分类: 嵌入式

2011-10-30 22:28:12

记录一下,详细说明可以从Android官网上了解~
Android源码下载【官方文档】:


步骤
1. Installing the JDK
sudo add-apt-repository "deb lucid partner"
sudo add-apt-repository "deb-src ubuntu lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-jdk:


2. Installing required packages
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


3. Next: Download the source
$ mkdir ~/bin
$ PATH=~/bin:$PATH

$ curl > ~/bin/repo
$ chmod a+x ~/bin/repo


repo init -u -b android-2.3.7_r1
错误:
Traceback (most recent call last):
  File "/root/bin/repo", line 685, in
    main(sys.argv[1:])
  File "/root/bin/repo", line 652, in main
    _Init(args)
  File "/root/bin/repo", line 184, in _Init
    _CheckGitVersion()
  File "/root/bin/repo", line 209, in _CheckGitVersion
    proc = subprocess.Popen(cmd, stdout=subprocess.PIPE)
  File "/usr/lib/python2.6/subprocess.py", line 633, in __init__
    errread, errwrite)
  File "/usr/lib/python2.6/subprocess.py", line 1139, in _execute_child
    raise child_exception
安装
apt-get install git-core

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