espressif / esp-adf

Espressif Audio Development Framework
Other
1.5k stars 669 forks source link

implicit declaration of function 'esp_blufi_close' in wifibleconfig.c (AUD-3195) #660

Closed jodersky closed 2 years ago

jodersky commented 2 years ago

I followed the instructions to set up latest esp-idf and esp-adf, and am trying to build the example "pipeline_a2dp_sink_and_hfp" (on a LyraT V4.3 board).

Here are the details of my setup:

Unfortunately idfy.py build fails with the following error:

.../esp/esp-adf/components/esp_peripherals/lib/blufi/wifibleconfig.c: In function 'wifi_ble_event_callback':
.../esp/esp-adf/components/esp_peripherals/lib/blufi/wifibleconfig.c:181:13: error: implicit declaration of function 'esp_blufi_close'; did you mean 'esp_wifi_stop'? [-Werror=implicit-function-declaration]
             esp_blufi_close(g_wifi_ble_config->ble_server_if, g_wifi_ble_config->ble_conn_id);
             ^~~~~~~~~~~~~~~
             esp_wifi_stop
cc1: some warnings being treated as errors

This also happens if I enable Component config -> Bluetooth -> Bluedroid -> Include blufi function in the menuconfig.

Any ideas what could be causing this?

jodersky commented 2 years ago

It was due to a version mismatch. Using latest esp-adf with esp-idf v4.1.1 worked!