のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

b2g(FirefoxOS) arm emulatorのビルド(その3) hardware/libhardware_legacy/wifi/wifi.c:26:36: error: libwpa_client/wpa_ctrl.h: No such file or directory

b2g arm emulatorのビルド(その1) - のねの日記
b2g arm emulatorのビルド(その2) - のねの日記
b2g arm emulatorのビルド(その3) - のねの日記

$. ./build/envsetup.sh
$. ./setup.sh
$cd external/wpa_supplicant_8/
$mm

これもだめか。

Androidのソースを見ると、0.6は、以下のように書いてある。

      1 ifndef WPA_SUPPLICANT_VERSION
      2 WPA_SUPPLICANT_VERSION := VER_0_6_X
      3 endif
      4 ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_6_X)
      5     include $(call all-subdir-makefiles)
      6 endif

同じように書いてみる。

ifndef WPA_SUPPLICANT_VERSION
    WPA_SUPPLICANT_VERSION := VER_0_8_X
endif
ifeq ($(WPA_SUPPLICANT_VERSION),VER_0_8_X)
    include $(call all-subdir-makefiles)
endif
./build.sh を実行してみる。

違うエラーになった。

target thumb C: libhardware_legacy <= hardware/libhardware_legacy/wifi/wifi.c
target thumb C: libwpa_client <= external/wpa_supplicant_8/wpa_supplicant/src/common/wpa_ctrl.c
external/wpa_supplicant_8/wpa_supplicant/src/common/wpa_ctrl.c:15:22: error: includes.h: No such file or directory
make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libwpa_client_intermediates/src/common/wpa_ctrl.o] エラー 1

これもダメみたいだ。

1日置いて、もう一度ソース取得からやり直した。
今度は、すんなりビルドが完了した。