2010.09.26

Android build

話題の携帯向けOS「Android」をx86パソコンで動かしてみよう
http://itpro.nikkeibp.co.jp/article/COLUMN/20090219/325052/?ST=android-dev

多くの人が参考にしている上記サイトのとおりで大体OK.
少し書いてないエラーが出たので、調べたことや気付いたことをメモ。

AndroidTips – Android開発でハマったことのメモが参考になる。

Error 1:

build/target/board/Android.mk:35: *** Please rename “vendor/asus/eee_701/Android.mk” to “vendor/asus/eee_701/AndroidBoard.mk”. 中止.

If you copy the file instead of move command, the following error will be happened.

build/core/base_rules.mk:117: *** vendor/asus/eee_701: MODULE.TARGET.KEYCHARS.AT_Translated_Set_2_keyboard.kcm already defined by vendor/asus/eee_701. 中止.

Error 2:

Copy: out/target/product/eee_701/obj/lib/libdiskconfig.so -> out/target/product/eee_701/installer/root/system/lib/libdiskconfig.so
Copy: ->
dirname: missing operand

Remove comment out from the file: external/e2fsprogs/Android.mk

vi external/e2fsprogs/Android.mk
-# include $(call all-subdir-makefiles)
+ include $(call all-subdir-makefiles)

Error 3:

Install: out/target/product/eee_701/system/xbin/timeinfo
make: *** ‘out/target/product/eee_701/system/etc/permissions/com.google.android.maps.xml’ に必要なターゲット ‘vendor/google/frameworks/maps/com.google.android.maps.xml’ を make するルールがありません.中止.

Edit the file: vendor/asus/eee_701/eee_701.mk
from

$(call inherit-product, $(SRC_TARGET_DIR)/product/generic_with_google.mk)

to

$(call inherit-product, $(SRC_TARGET_DIR)/product/generic.mk)

と、ここまでやってコンパイルできた!と思ったら、
次のステップに書いてある cupcake/kernel ディレクトリがない。。

日本Androidの会 cupcake配下にkernelフォルダがありません

によると、capcake(1.5) は既に古いらしく、
Android-x86 – Porting Android to x86
を見てみたら、donut(1.6), eclair(2.1), froyo(2.2) と出てるらしい。

ここまで時間かかったし、もったいないので、バージョン変えずに続行。

turboLinux(略) Android_VMWareによると以下で取得。

$ git clone git://android.git.kernel.org/kernel/common.git kernel

で、CONFIGはコピーして使うのかな?

$ cp vender/asus/eee_701/kernel.config kernel/.config

続く。


 
で、カーネルオプションをいくつかいじって、
ようやくコンパイルが済んで、
いざUSBにインストールしよう!と思ったら・・・

VMware 上のUbuntuがUSBを認識してくれない。

あ”ー、前もこんなことあった気がする。
そして諦めた気がする・・・

うん、躓いた。


2010.09.26, 11:34 / Android
Android build はコメントを受け付けていません

Comments are closed.