Ubuntu9.10下获取Android源码.doc
《Ubuntu9.10下获取Android源码.doc》由会员分享,可在线阅读,更多相关《Ubuntu9.10下获取Android源码.doc(5页珍藏版)》请在三一办公上搜索。
1、Ubuntu9.10下获取Android源码首先根据首先需要安装开发环境,需要如下包: Required Packages: Git 1.5.4 or newerand the GNU Privacy Guard. JDK 5.0, update 12 or higher. Java 6 is not supported, because of incompatibilities with Override./只能用JDK5,JDK6不能兼容Override flex, bison, gperf, libsdl-dev, libesd0-dev, libwxgtk2.6-dev (option
2、al), build-essential, zip, curl. $ sudo apt-get installgit-core gnupgsun-java5-jdkflex bison gperflibsdl-dev libesd0-devlibwxgtk2.6-dev build-essential zipcurl libncurses5-dev zlib1g-dev You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflo
3、ws, etc./这个是帮你寻找内存漏洞,堆溢出,数组越界溢出的工具$ sudo apt-get install valgrindUbuntu9.10的安装源已经没有JDK5了,所以需要用到9.04的安装源修改etcaptsources.list把9.04的源:debjaunty main restricted universe multiversedeb-srcjaunty main restricted universe multiversedebjaunty-updates main restricted universe multiversedeb-srcjaunty-updates
4、main restricted universe multiversedebjaunty-backports main restricted universe multiversedeb-srcjaunty-backports main restricted universe multiversedebjaunty-security main restricted universe multiversedeb-srcjaunty-security main restricted universe multiverseupdate之后,用sudo apt-get install sun-java
5、5-jdk 即可像以往一样安装java 1.5安装后的基本设置:sudo update-alternatives -config javasudo update-java-alternatives -s java-1.5.0-sun这时候再用java -version就能看到java 1.5已经正常工作了接下来就是安装repoTo install, initialize, and configure Repo, follow these steps:1. Make sure you have a/bindirectory in your home directory, and check to
6、 be sure that this bin directory is in your path: $ cd $ mkdir bin $ echo $PATH2. Download thereposcript and make sure it is executable:$ curl http:/android.git.kernel.org/repo /bin/repo $ chmod a+x /bin/repo初始化repo1. Create an empty directory to hold your working files:$ mkdir mydroid$ cd mydroid2.
7、 Runrepo inittobring down the latest version of Repo with all its most recent bug fixes. You must specify a URL for the manifest:$ repo init-u git:/android.git.kernel.org/platform/manifest.git 0. If you would like to check out a branch other than master, specify it with -b, like:$ repo init-u git:/a
8、ndroid.git.kernel.org/platform/manifest.git -b cupcake3. When prompted, configure Repo with your real name and email address. If you plan to submit code, use an email address that is associated with aGoogle account.A successful initialization will end with a message such as repoinitialized in /mydro
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- Ubuntu9 10 获取 Android 源码
![提示](https://www.31ppt.com/images/bang_tan.gif)
链接地址:https://www.31ppt.com/p-2393914.html