No.12164 作者:ydfq 邮件:1154493577@qq.com ID:129773 登陆:7次 文章数:41篇 最后登陆IP:60.176.87.66 最后登陆:2013/7/30 14:05:01 注册:2010/12/21 17:16:13 财富:155 发帖时间:2011/1/29 9:51:31 发贴者IP:123.157.246.17 标题:ydfq:[分享]Android cupcake源代码获取和编译 for Ubuntu 9.04 摘要:No.12164[分享]Android cupcake源代码获取和编译 for Ubuntu 9.04 编译环境 Ubuntu 9.04 Desktop 下载和编译流程 根据 的说明,成功的下载了所有源代码,整个目录文件接近2G 前期准备: 安装 git工具内核, 命令 sudo apt-get install git-core 1. 下载repo工具 curl > $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/s ......
>>返回讨论的主题
|