欢迎来到三一办公! | 帮助中心 三一办公31ppt.com(应用文档模板下载平台)
三一办公
全部分类
  • 办公文档>
  • PPT模板>
  • 建筑/施工/环境>
  • 毕业设计>
  • 工程图纸>
  • 教育教学>
  • 素材源码>
  • 生活休闲>
  • 临时分类>
  • ImageVerifierCode 换一换
    首页 三一办公 > 资源分类 > DOC文档下载  

    Ubuntu9.10下获取Android源码.doc

    • 资源ID:2393914       资源大小:38KB        全文页数:5页
    • 资源格式: DOC        下载积分:8金币
    快捷下载 游客一键下载
    会员登录下载
    三方登录下载: 微信开放平台登录 QQ登录  
    下载资源需要8金币
    邮箱/手机:
    温馨提示:
    用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP免费专享
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    Ubuntu9.10下获取Android源码.doc

    Ubuntu9.10下获取Android源码首先根据首先需要安装开发环境,需要如下包:· Required Packages: · Git 1.5.4 or newer and 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 (optional), build-essential, zip, curl.  $ sudo apt-get install git-core gnupg sun-java5-jdk flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev· You might also want Valgrind, a tool that will help you find memory leaks, stack corruption, array bounds overflows, etc./这个是帮你寻找内存漏洞,堆溢出,数组越界溢出的工具 $ sudo apt-get install valgrindUbuntu9.10的安装源已经没有JDK5了,所以需要用到9.04的安装源修改etcaptsources.list把9.04的源:deb  jaunty main restricted universe multiversedeb-src  jaunty main restricted universe multiversedeb  jaunty-updates main restricted universe multiversedeb-src  jaunty-updates main restricted universe multiversedeb  jaunty-backports main restricted universe multiversedeb-src  jaunty-backports main restricted universe multiversedeb  jaunty-security main restricted universe multiversedeb-src  jaunty-security main restricted universe multiverseupdate之后,用sudo apt-get install sun-java5-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 /bin directory in your home directory, and check to be sure that this bin directory is in your path:  $ cd   $ mkdir bin  $ echo $PATH2. Download the repo script 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. Run repo init to bring 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:/android.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 a Google account. A successful initialization will end with a message such as   repo initialized in /mydroidYour client directory should now contain a .repo directory where files such as the manifest will be kept. 获取代码To pull down files to your working directory from the repositories as specified in the default manifest, run    $ repo sync  For more about repo sync and other Repo commands, see Using Repo and Git.The Android source files will be located in your working directory under their project names. 验证代码Load the following public key into your GnuPG key database.  The key is used to sign annotated tags that represent releases.   $ gpg -importthen paste the key(s) below, and press Control-D to end the input and process the keys.  After importing the keys, you can verify any tag with   $ git tag -v tagnamekey 9AB10E78: "The Android Open Source Project <initial-contribution>"-BEGIN PGP PUBLIC KEY BLOCK-Version: GnuPG v1.4.2.2 (GNU/Linux)mQGiBEnnWD4RBACt9/h4v9x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W5Y2JIZpnRUq0CYxAmHYX79EMKHDSThf/8AAwUIAJPWsB/MpK+KMs/s3r6nJrnYLTfdZhtmQXimpoDMJg1zxmL8UfNUKiQZ6esoAWtDgpqt7Y7sKZ8laHRARonte394hidZzM5nb6hQvpPjt2OlPRsyqVxw4c/KsjADtAuKW9/d8phbN8bTyOJo856qg4oOEzKG9eeF7oaZTYBy33BTL0408sEBxiMior6b8LrZrAhkqDjAvUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmUtkBszwoG1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOGvytOX6KjKVzKOSsfJQhN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+BmrEOeCUOAJ9qmR0lEXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KLM=Wi5D-END PGP PUBLIC KEY BLOCK-编译代码To build the files, run make from within your working directory:    $ cd /mydroid      $ makeIf your build fails, complaining about a missing "run-java-tool", try setting the ANDROID_JAVA_HOME env var to $JAVA_HOME before making.  E.g.,    $ export ANDROID_JAVA_HOME=$JAVA_HOME

    注意事项

    本文(Ubuntu9.10下获取Android源码.doc)为本站会员(仙人指路1688)主动上传,三一办公仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知三一办公(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    备案号:宁ICP备20000045号-2

    经营许可证:宁B2-20210002

    宁公网安备 64010402000987号

    三一办公
    收起
    展开