谭松韵刘昊然电视剧:android2.3.3下载 编译
来源:百度文库 编辑:九乡新闻网 时间:2024/04/30 00:18:31
android源码更新速度可真快呀,测试进度都跟不上更新速度了...在公司,直接登录官方,下载不了了源码,在网上搜索了下,有人已经破解了,果然高手遍地都有啊。
(参考:http://my.chinaunix.net/space.php?uid=25598632&do=blog&id=213649)安装环境:ubuntu 10.04-desktop
1安装下载源码所需要的工具
1.1
sudo apt-get install git-core curl
这条命令会从互联网的软件仓库中安装 git-core 和 curl
1.2
mkdir ~/bin
PATH=~/bin:$PATH
在home目录下建立bin目录并设置环境变量
1.3
curl http://android.git.kernel.org/repo >~/bin/repo
这句命令会下载 repo 脚本文件到当前主目录的/bin 目录下,并保存在文件repo 中。
1.4
chmod a+x ~/bin/repo
修改 repo 文件可执行权限
1.5
执行下面的命令创建并进入空文件夹
mkdir yourdirectory
cd yourdirectory
2repo客户端初始化
2.1
下面是官网给的命令,但在公司行不通会报Connection timed out的错误,但在家直接用估计可以
repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake
2.2
在公司同步要先将bin里的.repo文件的
REPO_URL='git://android.git.kernel.org/tools/repo.git'
改成
REPO_URL='http://android.git.kernel.org/tools/repo.git'
然后命令改成下面这个(注意后面的版本号写法和官网不太一样,如果写-b Gingerbread的话会找不到版本)
repo init -u http://android.git.kernel.org/platform/manifest.git -b android-2.3.3_r1
(参考 http://blog.csdn.net/shaohui99/archive/2010/06/29/5702483.aspx)
2.3
执行上面的命令可能还会报个IOError找不到文件(暂时还不知道为什么)
但执行下面两条命令
touch ~/.gitconfig
rm -rf .repo
后再执行2.2的命令就可以同步了
成功的话会叫你填写自己的名字和邮箱
3下载源码
3.1
执行下面的命令会开始下载代码
repo sync
如果也有 Connection timed out错误就找到你在1.5时创建的目录下找到.repo文件夹打开后找到下载清单manifest.xml(manifest.xml为隐藏文件,得显示隐藏文件后才能看见)
打开manifest.xml
修改
fetch="git://android.git.kernel.org/"
为
fetch="http://android.git.kernel.org/"(http的穿透)
然后再执行repo sync,成功后会下载代码要几个小时(我下载了一天)
4编译
4.1
先进入1.5创建的空目录
再执行 make 命令
编译后的文件在out文件夹中
5生成SDK
make PRODUCT-sdk-sdk
编译完成后会在/work/froyo/out/host/linux-x86/sdk/目录生成sdk
(参考:http://my.chinaunix.net/space.php?uid=25598632&do=blog&id=213649)安装环境:ubuntu 10.04-desktop
1安装下载源码所需要的工具
1.1
sudo apt-get install git-core curl
这条命令会从互联网的软件仓库中安装 git-core 和 curl
1.2
mkdir ~/bin
PATH=~/bin:$PATH
在home目录下建立bin目录并设置环境变量
1.3
curl http://android.git.kernel.org/repo >~/bin/repo
这句命令会下载 repo 脚本文件到当前主目录的/bin 目录下,并保存在文件repo 中。
1.4
chmod a+x ~/bin/repo
修改 repo 文件可执行权限
1.5
执行下面的命令创建并进入空文件夹
mkdir yourdirectory
cd yourdirectory
2repo客户端初始化
2.1
下面是官网给的命令,但在公司行不通会报Connection timed out的错误,但在家直接用估计可以
repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake
2.2
在公司同步要先将bin里的.repo文件的
REPO_URL='git://android.git.kernel.org/tools/repo.git'
改成
REPO_URL='http://android.git.kernel.org/tools/repo.git'
然后命令改成下面这个(注意后面的版本号写法和官网不太一样,如果写-b Gingerbread的话会找不到版本)
repo init -u http://android.git.kernel.org/platform/manifest.git -b android-2.3.3_r1
(参考 http://blog.csdn.net/shaohui99/archive/2010/06/29/5702483.aspx)
2.3
执行上面的命令可能还会报个IOError找不到文件(暂时还不知道为什么)
但执行下面两条命令
touch ~/.gitconfig
rm -rf .repo
后再执行2.2的命令就可以同步了
成功的话会叫你填写自己的名字和邮箱
3下载源码
3.1
执行下面的命令会开始下载代码
repo sync
如果也有 Connection timed out错误就找到你在1.5时创建的目录下找到.repo文件夹打开后找到下载清单manifest.xml(manifest.xml为隐藏文件,得显示隐藏文件后才能看见)
打开manifest.xml
修改
fetch="git://android.git.kernel.org/"
为
fetch="http://android.git.kernel.org/"(http的穿透)
然后再执行repo sync,成功后会下载代码要几个小时(我下载了一天)
4编译
4.1
先进入1.5创建的空目录
再执行 make 命令
编译后的文件在out文件夹中
5生成SDK
make PRODUCT-sdk-sdk
编译完成后会在/work/froyo/out/host/linux-x86/sdk/目录生成sdk
android2.3.3下载 编译
android平台下载和编译方法
arm-linux,arm-elf-交叉编译环境下载地址
Ubuntu 10.04(64位)下载并编译 Android 2.2 源码[只有11条命令]666
android2.3使用技巧大全
编译 运行
sersync 编译
编译原理
Android2.3体验 索尼爱立信MT15i评测
纤薄Android2.3 索尼爱立信LT15i评测
编译工具和交叉编译环境配置
Android源码编译
Ubuntu编译 Android 源码
WINCE下编译STLPort
GPAC&MP4BOX编译过程
VC编译语法解释
gcc编译C++程序
MTK编译环
寿康宝鉴白话编译
C++中的条件编译
Linux apache编译安装
vc++6.0 编译JRTPLIB
Flex compc & ant 编译
Android 系统编译