Page 1 of 1

fatal error: esp_adc_cal.h: No such file or directory (While Compiling ADC Example)

Posted: Mon Mar 01, 2021 5:15 pm
by espnewbie
Hi All,

I am pretty new to ESP-IDF development and currently, I am testing the ADC example.

However, I get an error during the compilation "fatal error: esp_adc_cal.h: No such file or directory". But the component is on the esp-idf components folder.

I just need your expert assistance on what and where should I add a line of code to include the directory. Thank you.

Re: fatal error: esp_adc_cal.h: No such file or directory (While Compiling ADC Example)

Posted: Tue Mar 02, 2021 3:19 pm
by espnewbie
this is the code I have on the CMakeLists.txt of the main folder.

Code: Select all

idf_component_register(SRCS "adc1_example_main.c"
                    INCLUDE_DIRS "."
                    REQUIRES "esp_adc_cal")
Do I miss anything aside from this?