Skip to content

[Using as ESP-IDF component : No such file or directory] esp_bt_defs.h and esp_bt_main.h #343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ESP32DE opened this issue Apr 30, 2017 · 1 comment

Comments

@ESP32DE
Copy link

ESP32DE commented Apr 30, 2017

Using as ESP-IDF component

hi

tested just in time this procedure
install arduino as component under template project like this description

after doings i start make, and get error

fatal error: esp_bt_defs.h: No such file or directory
esp32-hal-bt.c /_template_empty_esp32_arduino/components/arduino/cores/esp32
line 18 C/C++ Problem

fatal error: esp_bt_defs.h: No such file or directory
esp32-hal-bt.c /_template_empty_esp32_arduino/components/arduino/cores/esp32
line 19 C/C++ Problem

for this two files:

https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-bt.c#L18
https://github.com/espressif/arduino-esp32/blob/master/cores/esp32/esp32-hal-bt.c#L19

after comment the includes for this two files,

// #include "esp_bt_defs.h"
// #include "esp_bt_main.h"

compile is ok.

best wishes
rudi ;-)

@Curclamas
Copy link
Contributor

Hey Rudi, it looks like you have BT disabled in sdkconfig/make menuconfig. When you enable it the code should compile without the commented out includes.
FYI I did encounter the same problem and fixed it by:

#ifdef BT_ENABLED
#include "esp_bt_defs.h"
#include "esp_bt_main.h"
...
#endif

@me-no-dev we talked about that on gitter, maybe we should have this ifdef and the possibility to "opt out" from BT in make menuconfig (while leaving it default on of course)

blue-2357 pushed a commit to blue-2357/arduino-esp32 that referenced this issue Jul 17, 2024
dash0820 added a commit to dash0820/arduino-esp32-stripped that referenced this issue Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants