[已解决] idf编译时提示找不到esp_adc_cal.h

dreamcmi
Posts: 30
Joined: Mon May 31, 2021 2:25 am

[已解决] idf编译时提示找不到esp_adc_cal.h

Postby dreamcmi » Mon May 31, 2021 2:32 am

我在我的工程里添加"esp_adc_cal.h"头文件,使用idf.py build提示找不到头文件,请问应该如何解决?
以下是我的cmakelist

Code: Select all

idf_component_register(
    SRC_DIRS modules freertos port packages 
    INCLUDE_DIRS include ../lua/include  
    REQUIRES lua freertos spiffs )
我的代码仓库在https://gitee.com/dreamcmi/LuatOS-ESP32
Attachments
QQ截图20210531102935.png
QQ截图20210531102935.png (10.58 KiB) Viewed 3211 times
QQ截图20210531102852.png
QQ截图20210531102852.png (111.07 KiB) Viewed 3211 times

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: idf编译时提示找不到esp_adc_cal.h

Postby ESP_Gargamel » Mon May 31, 2021 3:43 am

Code: Select all

idf_component_register(
    SRC_DIRS modules freertos port packages 
    INCLUDE_DIRS include ../lua/include  
    REQUIRES lua freertos spiffs esp_adc_cal)
REQUIRES 加上 esp_adc_cal。

dreamcmi
Posts: 30
Joined: Mon May 31, 2021 2:25 am

Re: idf编译时提示找不到esp_adc_cal.h

Postby dreamcmi » Mon May 31, 2021 6:01 am

解决了 谢谢

Who is online

Users browsing this forum: No registered users and 74 guests