Page 1 of 1

How to add source files to eclipse project

Posted: Mon May 09, 2022 12:38 pm
by Stipa88
Hi,
please help.
How to add source (* .c) files from components (and other * .c file) to Eclipse project.
I want to see the contents of the function, which functions are called, etc.

Thank you.

Re: How to add source files to eclipse project

Posted: Tue May 10, 2022 6:04 am
by ESP_kondalkolipaka
Hello,

Could you check this and look for "Source code navigation and linking esp-idf components" section

When a project is built all the dependent esp-idf components (based on the compile_commands.json) will be linked to the project with the folder name esp_idf_components.

This will help in two ways. First, the user should be able to browse through the esp-idf source code directly under the eclipse project explorer. Second, It allows navigating to the function definitions by pressing F3 or ctrl+ click(in macOS command+click) on the function name.

I hope that helps.

Re: How to add source files to eclipse project

Posted: Tue May 10, 2022 6:46 am
by Stipa88
Thank you for your reply.
If I open an example ESPRainMaker "https://github.com/espressif/esp-rainma ... les/switch" in Eclipse IDE, I add a virtual folder to the project "components" (components are all components of ESRrainMaker - https://github.com/espressif/esp-rainma ... components), errors manifest (see picture). How to compile without errors?? Tnx

Image