FirefoxOSをbuild.shする際に気付いたことをメモとして書いておきます。
その1:対象Deviceが接続できないといけない
→VirtualBoxで認識できるようにさせれば仮想でOK
その2:
Ubuntu12.04では必要なソフトがそろわない
→Ubuntu13.04で代用可能
その3:下記のエラーが出る場合はGCCとg++のVer,が新しい
—————エラー内容—————
frameworks/base/include/utils/KeyedVector.h: In instantiation of ‘const VALUE& android::DefaultKeyedVector<KEY, VALUE>::valueFor(const KEY&) const [with KEY = android::String8; VALUE = android::sp<AaptDir>]’:
frameworks/base/tools/aapt/AaptAssets.cpp:1700:53: required from here
frameworks/base/include/utils/KeyedVector.h:196:31: error: ‘indexOfKey’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
frameworks/base/include/utils/KeyedVector.h:196:31: note: declarations in dependent base ‘android::KeyedVector<android::String8, android::sp<AaptDir> >’ are not found by unqualified lookup
frameworks/base/include/utils/KeyedVector.h:196:31: note: use ‘this->indexOfKey’ instead
make: *** [out/host/linux-x86/obj/EXECUTABLES/aapt_intermediates/AaptAssets.o] Error 1
——————————————-
→「export CC=gcc-4.6」「export CXX=g++-4.6」を使えばOK
その4:
できたROMデータをそのまま焼くと文鎮化(Firefoxの狐が出たところで止まる)
↓にあるboot.imgを手順に沿っておいてやる必要あり
http://sl.edujose.org/2013/10/adapted-boot-image-for-use-with-b2g.html
——————————————-
Download boot_adapted_for_zte_open_commercial_editions.img
boot_adapted_for_zte_open_commercial_editions.img (201 ダウンロード )- Change the filename as boot.img and copy into /out/target/product/inari/
- Run ./flash.sh
——————————————-