Page 1 of 1

ESP-IDF + eclipse. Adding new components to project.

Posted: Thu Feb 20, 2025 9:22 am
by axa-esp-hobby
Hello.

I am using Linux Mint, eclipse 4.34.0, idf-esp ESP-IDF v5.4.
I am adding a component to the default example project from the esp-idf sdk "Hello World".
To do this, I add the line REQUIRES driver to the CMakeLists.txt file.
Selection_010.png
Selection_010.png (15.6 KiB) Viewed 469 times
Then I include the header file and the required functions in the source code.
ESP-IDF + eclipse.
Selection_011.png
Selection_011.png (76.04 KiB) Viewed 469 times
But neither the header nor the functions are recognized until I rebuild the project.
What should I do?
Rebuild every time immediately after adding to CMakeLists.txt?
Is there a more elegant way?