ESP32C3编辑蓝牙报错host/ble_hs.h: No such file or directory
已经在menuconfig中启用了蓝牙协议栈,还是报这个错误。
·
common.h:26:10: fatal error: host/ble_hs.h: No such file or directory
26 | #include "host/ble_hs.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
[11/203] Building C object esp-id...nts.dir/src/font_puhui_30_4.c.obj
ninja: build stopped: subcommand failed.
已经在menuconfig中启用了蓝牙协议栈,还是报这个错误。最后发现需要在CMakeLists.txt中声明蓝牙依赖:
idf_component_register(REQUIRES bt)
更多推荐



所有评论(0)