How to add source files to eclipse project

Stipa88
Posts: 20
Joined: Mon May 09, 2022 12:26 pm

How to add source files to eclipse project

Postby Stipa88 » Mon May 09, 2022 12:38 pm

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.

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: How to add source files to eclipse project

Postby ESP_kondalkolipaka » Tue May 10, 2022 6:04 am

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.

Stipa88
Posts: 20
Joined: Mon May 09, 2022 12:26 pm

Re: How to add source files to eclipse project

Postby Stipa88 » Tue May 10, 2022 6:46 am

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
Attachments
Error_Eclipse.png
Error_Eclipse.png (137.73 KiB) Viewed 3065 times

Who is online

Users browsing this forum: No registered users and 24 guests