WEB开发网
开发学院手机开发Android 开发 Android cupcake 源代码获取和编译 for Ubuntu 9.... 阅读

Android cupcake 源代码获取和编译 for Ubuntu 9.04

 2010-04-21 06:32:00 来源:WEB开发网   
核心提示:编译环境Ubuntu 9.04 Desktop下载和编译流程根据http://source.android.com/download的说明,成功的下载了所有源代码,Android cupcake 源代码获取和编译 for Ubuntu 9.04,整个目录文件接近2G前期准备:安装 git工具内核, 命令 sudo ap

编译环境

Ubuntu 9.04 Desktop

下载和编译流程

根据http://source.android.com/download的说明,成功的下载了所有源代码,整个目录文件接近2G

前期准备:

安装 git工具内核, 命令 sudo apt-get install git-core

1. 下载repo工具

curl http://android.git.kernel.org/repo > $HOME/bin/repo

cd $HOME/bin

chmod +x repo

2.导出android项目

mkdir android

cd android

repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake (如果不出错的话,5分钟内应提示成功,跟网络速度有关)

3.开始下载android platform的源代码

repo sync (这个操作会持续一段时间,与你自己的网速有关)

4.编译前,建议装的软件包如下(使用apt-get安装)

flex bison gperf libsdl-dev libesd0-dev curl libncurses5-dev zlib1g-dev libx11-dev

5.编译

make (非常漫长的等待,与你的CPU速度有一定关系,建议是睡觉前编译)

编译时,以下源代码需要加入相应的头文件(include)

/android/cupcake/frameworks/base/tools/aidl/aidl.cpp string.h,stdlib.h

/android/cupcake/frameworks/base/tools/aidl/options.cpp string.h

/android/cupcake/frameworks/base/tools/aidl/search_path.h string,string.h

/android/cupcake/frameworks/base/tools/aidl/generate_java string.h

/android/cupcake/external/srec/tools/thirdparty/OpenFst/fst/lib/vector-fst.h string.h

/android/cupcake/external/srec/tools/thirdparty/OpenFst/fst/lib/symbol-table.cpp string.h

/android/cupcake/build/tools/atree/files.cpp string.h,stdlib.h

/android/cupcake/build/tools/atree/fs.cpp string.h

/android/cupcake/frameworks/base/tools/localize/file_utils.cpp string.h,stdlib.h

/android/cupcake/frameworks/base/tools/localize/localize.cpp string.h,stdlib.h

/android/cupcake/frameworks/base/tools/localize/Perforce.cpp string.h,stdlib.h

1 2  下一页

Tags:Android cupcake 源代码

编辑录入:coldstar [复制链接] [打 印]
赞助商链接