天天看點

Ubuntu10.04 32位編譯Android 4.0源碼

http://blog.csdn.net/cwjbeyond/article/details/7070290

幾經周轉,終于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出現。

運作模拟器基本正常。

Ubuntu10.04 32位編譯Android 4.0源碼

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

emulator: warning: system partition size adjusted to match image file (203 mb > 66 mb)

Ubuntu10.04 32位編譯Android 4.0源碼

執行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,模拟器運作黑屏,不能進入系統。

Ubuntu10.04 32位編譯Android 4.0源碼

在模拟器運作時,可執行adb指令進入模拟器的終端。

Ubuntu10.04 32位編譯Android 4.0源碼

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

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

繼續閱讀