b2g arm emulatorのビルド(その2) "libwpa_client/wpa_ctrl.h" "no such file or directory"
b2g arm emulatorのビルド(その1) - のねの日記
b2g arm emulatorのビルド(その2) - のねの日記
b2g arm emulatorのビルド(その3) - のねの日記
hardware/libhardware_legacy/wifi/wifi.c:26:36: error: libwpa_client/wpa_ctrl.h: No such file or directory hardware/libhardware_legacy/wifi/wifi.c: In function 'wifi_connect_to_supplicant': hardware/libhardware_legacy/wifi/wifi.c:599: warning: implicit declaration of function 'wpa_ctrl_open' hardware/libhardware_legacy/wifi/wifi.c:599: warning: assignment makes pointer from integer without a cast hardware/libhardware_legacy/wifi/wifi.c:605: warning: assignment makes pointer from integer without a cast hardware/libhardware_legacy/wifi/wifi.c:607: warning: implicit declaration of function 'wpa_ctrl_close' hardware/libhardware_legacy/wifi/wifi.c:611: warning: implicit declaration of function 'wpa_ctrl_attach' hardware/libhardware_legacy/wifi/wifi.c: In function 'wifi_send_command': hardware/libhardware_legacy/wifi/wifi.c:636: warning: implicit declaration of function 'wpa_ctrl_request' hardware/libhardware_legacy/wifi/wifi.c: In function 'wifi_ctrl_recv': hardware/libhardware_legacy/wifi/wifi.c:654: warning: implicit declaration of function 'wpa_ctrl_get_fd' hardware/libhardware_legacy/wifi/wifi.c:668: warning: implicit declaration of function 'wpa_ctrl_recv' hardware/libhardware_legacy/wifi/wifi.c: In function 'wifi_wait_for_event': hardware/libhardware_legacy/wifi/wifi.c:687: error: 'WPA_EVENT_TERMINATING' undeclared (first use in this function) hardware/libhardware_legacy/wifi/wifi.c:687: error: (Each undeclared identifier is reported only once hardware/libhardware_legacy/wifi/wifi.c:687: error: for each function it appears in.) hardware/libhardware_legacy/wifi/wifi.c:687: error: expected ')' before string constant hardware/libhardware_legacy/wifi/wifi.c:687: error: too few arguments to function 'strncpy' hardware/libhardware_legacy/wifi/wifi.c:695: error: expected ')' before string constant hardware/libhardware_legacy/wifi/wifi.c:695: error: too few arguments to function 'strncpy' hardware/libhardware_legacy/wifi/wifi.c:705: error: expected ')' before string constant hardware/libhardware_legacy/wifi/wifi.c:705: error: too few arguments to function 'strncpy' make: *** [out/target/product/generic/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/wifi/wifi.o] エラー 1
検索してみると、以下の場所にファイルがあった。
B2G/external/wpa_supplicant_8/src/common/wpa_ctrl.h
シンボリックリンクを張ってみた。
$sudo mkdir ~/B2G/out/target/product/generic/obj/include/libwpa_client $sudo ln -s ~/B2G/external/wpa_supplicant_8/src/common/wpa_ctrl.h ~/B2G/out/target/product/generic/obj/include/libwpa_client/wpa_ctrl.h
エラーが出た。いきづまった。
cp /home/B2G/gaia/profile/user.js out/target/product/generic/system/b2g/user.js target thumb C: libhardware_legacy <= hardware/libhardware_legacy/wifi/wifi.c target thumb C: libhardware_legacy <= hardware/libhardware_legacy/qemu/qemu.c target thumb C: libhardware_legacy <= hardware/libhardware_legacy/qemu_tracing/qemu_tracing.c make: *** `out/target/product/generic/obj/SHARED_LIBRARIES/libhardware_legacy_intermediates/LINKED/libhardware_legacy.so' に必要なターゲット `out/target/product/generic/obj/lib/libwpa_client.so' を make するルールがありません. 中止.