Ubuntu10.04 32位編譯Android 4.0源碼
https://blog.csdn.net/cwjbeyond/article/details/7070290
幾經周轉,終於make自己的下載的Android 4.0鏡像文件,並成功用模擬器運行。
所有步驟均按Android官網執行。
https://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命令進入模擬器的終端。
——————————————————————
同事使用我下載的源碼進行編譯同樣成功。
最後更新:2017-04-02 22:16:28