Page 1 of 1

Unresolved dependencies - Include path settings

Posted: Fri Jul 02, 2021 12:04 pm
by keflex87
Hello,

i try to compile an example IDF project "Hello World" in Eclipse 2021-06 (4.20.0) with the IDF Eclipse Plugin Version: 2.1.2.202106231127. the build process returns some erros because some dependencies cannot be resolved. In the project settings i can't find any include path settings. Can anyone help me? :?

Screenshot see appendix.

Thank you
Andre

Re: Unresolved dependencies - Include path settings

Posted: Fri Jul 09, 2021 6:06 am
by ESP_kondalkolipaka
Hello,

Eclipse CDT Indexer for CMake works based on the compile_commands.json file generated in the build folder. If the compile_commands.json is correct, the indexer should ideally resolve all the headers. Please share an example with us to understand more about the resolved dependencies issues which you're facing.

"Include path settings" was part of the Make projects design not for CMake projects.

Re: Unresolved dependencies - Include path settings

Posted: Fri Jul 09, 2021 2:12 pm
by BrianP
This tends to happen if you change (or sometimes modify) the Run or Debug configuration. Somehow Eclipse ends up with a bad "index" in the build directory and it doesn't know it so re-indexing doesn't fix the issue.

Delete the build directory of the project and do a build all.