Page 1 of 1

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

Posted: Mon May 31, 2021 2:32 am
by dreamcmi
我在我的工程里添加"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

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

Posted: Mon May 31, 2021 3:43 am
by ESP_Gargamel

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。

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

Posted: Mon May 31, 2021 6:01 am
by dreamcmi
解决了 谢谢