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

axa-esp-hobby
Posts: 6
Joined: Sun Feb 16, 2025 7:41 pm

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

Postby axa-esp-hobby » Thu Feb 20, 2025 9:22 am

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 467 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 467 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?

Who is online

Users browsing this forum: justinmreina and 90 guests