esp-idf 编译报错

18826799028
Posts: 1
Joined: Thu Jun 08, 2023 9:22 am

esp-idf 编译报错

Postby 18826799028 » Thu Jun 08, 2023 9:38 am

C:/esp/project/mycomponentsV4.102/components/mycommon/include/mycommon.h:11:10: fatal error: driver/gpio.h: No such file or directory
11 | #include "driver/gpio.h"
| ^~~~~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
HINT: Please make sure that the header name is correct. Also please check if you've specified all component dependencies with 'idf_component_register(REQUIRES ...)'. If the component is not present then it should be added by the IDF Component Manager. For more information run 'idf.py docs -sp api-guides/build-system.html'.
Also, please check if the header file has been removed, renamed or relocated - refer to the migration guide for more information.
ninja failed with exit code 1, output of the command is in the c:\esp\project\mycomponentsv4.102\build\log\idf_py_stderr_output_14348 and c:\esp\project\mycomponentsv4.102\build\log\idf_py_stdout_output_14348

怎么解决

ESP_Eavo
Posts: 186
Joined: Tue Jun 08, 2021 6:23 am

Re: esp-idf 编译报错

Postby ESP_Eavo » Tue Jun 13, 2023 6:54 am

请参考 提问规则(置顶帖)提供更加详细的信息。

Who is online

Users browsing this forum: Bing [Bot] and 70 guests