BT component include error
Posted: Sat May 18, 2024 8:35 pm
I'm trying to include the BLE header into my ESP32 project, added line
to CMakeLists.txt as instructed by documentation
https://docs.espressif.com/projects/esp ... p_ble.html
compiled with latest docker image
but still getting
weirdly I didn't have any problem including wifi, didn't even have to modify REQUIRES for it
#include "esp_wifi.h"
Code: Select all
REQUIRES bt esp_common driver hal freertos log
https://docs.espressif.com/projects/esp ... p_ble.html
compiled with latest docker image
Code: Select all
sudo docker run --rm -v $PWD:/project -w /project -u $UID -e HOME=/tmp espressif/idf idf.py build
Code: Select all
/project/main/ble_wrp.c:9:10: fatal error: esp_gap_ble_api.h: No such file or directory 9 | #include "esp_gap_ble_api.h" compilation terminated.
Code: Select all
Missing "esp_gap_ble_api.h" file name found in the following component(s): bt(/opt/esp/idf/components/bt/host/bluedroid/api/include/api/esp_gap_ble_api.h). Maybe one of the components needs to add the missing header directory to INCLUDE_DIRS of idf_component_register call in CMakeLists.txt.
#include "esp_wifi.h"