Ubuntu10.04 32位編譯Android 4.0源碼

幾經週轉,終於make自己的下載的Android 4.0鏡像文件,併成功用模擬器運行。


所有步驟均按Android官網執行。

http://source.android.com/source/initializing.html


並且在~/.bashrc 中寫入如下語句:

export ANDROID_PRODUCT_OUT=~/Android/out/target/product/generic
ANDROID_PRODUCT_OUT_BIN=~/Android/out/host/linux-x86/bin
export PATH=${PATH}:${ANDROID_PRODUCT_OUT_BIN}:${ANDROID_PRODUCT_OUT};


導入eclipse 中沒error出現。

運行模擬器基本正常。

不使用partition size參數也可以正常運行,但會報錯

emulator: WARNING: system partition size adjusted to match image file (203 MB > 66 MB)

執行lunch時不加參數,會出現提示選項:

     1. full-eng
     2. full_x86-eng
     3. vbox_x86-eng
     4. full_maguro-userdebug
     5. full_tuna-userdebug
     6. full_panda-eng

Which would you like? [full-eng] 2
我的Ubuntu是32位的,於是選第二項。

uname -ra 可以查看系統信息,我的是

Linux ubuntu 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux

備註:

第一次make時選擇lunch full-eng,模擬器運行黑屏,不能進入系統。

在模擬器運行時,可執行adb命令進入模擬器的終端。


——————————————————————

同事使用我下載的源碼進行編譯同樣成功。



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章