Ubuntu9.10下獲取Android源碼

上傳人:1666****666 文檔編號(hào):38626645 上傳時(shí)間:2021-11-08 格式:DOC 頁數(shù):5 大?。?5.02KB
收藏 版權(quán)申訴 舉報(bào) 下載
Ubuntu9.10下獲取Android源碼_第1頁
第1頁 / 共5頁
Ubuntu9.10下獲取Android源碼_第2頁
第2頁 / 共5頁
Ubuntu9.10下獲取Android源碼_第3頁
第3頁 / 共5頁

下載文檔到電腦,查找使用更方便

0 積分

下載資源

還剩頁未讀,繼續(xù)閱讀

資源描述:

《Ubuntu9.10下獲取Android源碼》由會(huì)員分享,可在線閱讀,更多相關(guān)《Ubuntu9.10下獲取Android源碼(5頁珍藏版)》請(qǐng)?jiān)谘b配圖網(wǎng)上搜索。

1、Ubuntu9.10下獲取Android源碼 首先根據(jù) 首先需要安裝開發(fā)環(huán)境,需要如下包: 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,

2、 libwxgtk2.6-dev (optional), 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 corr

3、uption, array bounds overflows, etc.//這個(gè)是幫你尋找內(nèi)存漏洞,堆溢出,數(shù)組越界溢出的工具 $ sudo apt-get install valgrind Ubuntu9.10的安裝源已經(jīng)沒有JDK5了,所以需要用到9.04的安裝源 修改\etc\apt\sources.list把9.04的源: deb main restricted universe multiverse deb-src main restricted universe multiverse deb main restricted universe multiverse de

4、b-src main restricted universe multiverse deb main restricted universe multiverse deb-src main restricted universe multiverse deb main restricted universe multiverse deb-src main restricted universe multiverse update之后,用sudo apt-get install sun-java5-jdk 即可像以往一樣安裝java 1.5 安裝后的基本設(shè)置: sudo u

5、pdate-alternatives --config java sudo update-java-alternatives -s java-1.5.0-sun 這時(shí)候再用java -version就能看到j(luò)ava 1.5已經(jīng)正常工作了 接下來就是安裝repo To install, initialize, and configure Repo, follow these steps: 1. Make sure you have a~/bindirectory in your home directory, and check to be sure that this bin dir

6、ectory is in your path: $ cd~ $ mkdir bin $ echo $PATH 2. Download thereposcript and make sure it is executable: $ curl http://android.git.kernel.org/repo >~/bin/repo $ chmod a+x ~/bin/repo 初始化repo 1. Create an empty directory to hold your working files: $ mkdir mydroid $ cd mydroid 2

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 1. If you would like to check out a branch other than "master", specify it with -b, like: $ repo ini

8、t-u git://android.git.kernel.org/platform/manifest.git -b cupcake 3. 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 repoinit

9、ialized in /mydroid Your client directory should now contain a.repodirectory 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 aboutrepo syncand other Repo

10、commands, seeUsing Repo and Git. The Android source files will be located in your working directory under theirprojectnames. 驗(yàn)證代碼 Load the following public key into your GnuPG key database. The key is used to sign annotated tags that represent releases. $ gpg --import then paste the ke

11、y(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 -vtagname key 9AB10E78: "The Android Open Source Project " -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.4.2.2 (GNU/Linux)

12、 mQGiBEnnWD4RBACt9/h4v9xnnGDou13y3dvOx6/t43LPPIxeJ8eX9WB+8LLuROSV lFhpHawsVAcFlmi7f7jdSRF+OvtZL9ShPKdLfwBJMNkU66/TZmPewS4m782ndtw7 8tR1cXb197Ob8kOfQB3A9yk2XZ4ei4ZC3i6wVdqHLRxABdncwu5hOF9KXwCgkxMD u4PVgChaAJzTYJ1EG+UYBIUEAJmfearb0qRAN7dEoff0FeXsEaUA6U90sEoV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BTL0408sEBxiMior6b8LrZrAhkqDjA vUXRwm/fFKgpsOysxC6xi553CxBUCH2omNV6Ka1LNMwzSp9ILz8jEGqmUtkBszwo G1S8fXgE0Lq3cdDM/GJ4QXP/p6LiwNF99faDMTV3+2SAOG

17、vytOX6KjKVzKOSsfJQ hN0DlsIw8hqJc0WISQQYEQIACQUCSedYRAIbDAAKCRDorT+BmrEOeCUOAJ9qmR0l EXzeoxcdoafxqf6gZlJZlACgkWF7wi2YLW3Oa+jv2QSTlrx4KLM= =Wi5D -----END PGP PUBLIC KEY BLOCK----- 編譯代碼 To build the files, runmakefrom within your working directory: $ cd ~/mydroid $ make If 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

展開閱讀全文
溫馨提示:
1: 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
2: 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
3.本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
5. 裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

相關(guān)資源

更多
正為您匹配相似的精品文檔

相關(guān)搜索

關(guān)于我們 - 網(wǎng)站聲明 - 網(wǎng)站地圖 - 資源地圖 - 友情鏈接 - 網(wǎng)站客服 - 聯(lián)系我們

copyright@ 2023-2025  zhuangpeitu.com 裝配圖網(wǎng)版權(quán)所有   聯(lián)系電話:18123376007

備案號(hào):ICP2024067431號(hào)-1 川公網(wǎng)安備51140202000466號(hào)


本站為文檔C2C交易模式,即用戶上傳的文檔直接被用戶下載,本站只是中間服務(wù)平臺(tái),本站所有文檔下載所得的收益歸上傳人(含作者)所有。裝配圖網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)上載內(nèi)容本身不做任何修改或編輯。若文檔所含內(nèi)容侵犯了您的版權(quán)或隱私,請(qǐng)立即通知裝配圖網(wǎng),我們立即給予刪除!