0
点赞
收藏
分享

微信扫一扫

ESP32-C3入门教程 问题篇⑦—— fatal error: esp_bt.h: No such file or directory 找不到esp_bt.h


一、前言

本文基于VS Code IDE进行编程、编译、下载、运行等操作
基础入门章节请查阅:ESP32-C3入门教程 基础篇①——基于VS Code构建Hello World 教程目录大纲请查阅:ESP32-C3入门教程——导读

二、发现问题

移植blufi功能的时候,发现编译错误

./main/blufi/blufi_security.c
../main/blufi/blufi_security.c:20:10: fatal error: esp_bt.h: No such file or directory
 #include "esp_bt.h"
          ^~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
终端进程“C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Command ninja ”已终止,退出代码: 1。

ESP32-C3入门教程 问题篇⑦—— fatal error: esp_bt.h: No such file or directory 找不到esp_bt.h_esp_bt

三、解决问题

原因是,需要在menuconfig中使能蓝牙Bluetooth

ESP32-C3入门教程 问题篇⑦—— fatal error: esp_bt.h: No such file or directory 找不到esp_bt.h_bluetooth_02


举报

相关推荐

0 条评论