使用官方的ESP-IDF命令行 编译 例程 gatt_server 编译一直出错是什么原因呢

huahua
Posts: 2
Joined: Sun Dec 24, 2023 6:21 am

使用官方的ESP-IDF命令行 编译 例程 gatt_server 编译一直出错是什么原因呢

Postby huahua » Sun Dec 24, 2023 7:12 am

  1. C:/esp/gatt_server_service_table/main/gatts_table_creat_demo.c: In function 'app_main':
  2. C:/esp/gatt_server_service_table/main/gatts_table_creat_demo.c:546:5: error: unknown type name 'esp_bluedroid_config_t'; did you mean 'esp_bluedroid_status_t'?
  3.   [color=#FF0040]546 |     esp_bluedroid_config_t bluedroid_cfg = BT_BLUEDROID_INIT_CONFIG_DEFAULT();
  4.       |     ^~~~~~~~~~~~~~~~~~~~~~
  5.       |     esp_bluedroid_status_t[/color]
  6. C:/esp/gatt_server_service_table/main/gatts_table_creat_demo.c:546:44: error: implicit declaration of function 'BT_BLUEDROID_INIT_CONFIG_DEFAULT'; did you mean 'BT_CONTROLLER_INIT_CONFIG_DEFAULT'? [-Werror=implicit-function-declaration]
  7.   5[color=#FF4000]46 |     esp_bluedroid_config_t bluedroid_cfg = BT_BLUEDROID_INIT_CONFIG_DEFAULT();
  8.       |                                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  9.       |                                            BT_CONTROLLER_INIT_CONFIG_DEFAULT[/color]
  10. C:/esp/gatt_server_service_table/main/gatts_table_creat_demo.c:547:11: error: implicit declaration of function 'esp_bluedroid_init_with_cfg'; did you mean 'esp_bluedroid_init'? [-Werror=implicit-function-declaration]
  11. [color=#FF4000]  547 |     ret = esp_bluedroid_init_with_cfg(&bluedroid_cfg);
  12.       |           ^~~~~~~~~~~~~~~~~~~~~~~~~~~
  13.       |           esp_bluedroid_init
  14. cc1.exe: some warnings being treated as errors[/color]
  15. [color=#FF4040]ninja: build stopped: subcommand failed.[/color]
  16. ninja failed with exit code 1, output of the command is in the C:\esp\gatt_server_service_table\build\log\idf_py_stderr_output_13052 and C:\esp\gatt_server_service_table\build\log\idf_py_stdout_output_13052

Who is online

Users browsing this forum: No registered users and 129 guests