How to add include paths for CDT CMake projects

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How to add include paths for CDT CMake projects

Kondal Kolipaka
Hello Team,

I couldn't find these options in the project properties for CDT CMake projects.  Below settings are available only for Make projects but not for CMake projects.

Project --> Properties --> C/C++ General -->Preprocessor Include Paths,macros,etc

Project --> Properties --> C/C++ General -->Paths and Symbols.

Could someone help in understanding why these were removed and how to add "include" paths if someone wants to add something?

I'm sure, based on compile_commands.json file CDT indexing might be resolving the headers but somehow this is not working in Windows OS(working fine in macOS). 

Do you guys see any workaround to add include paths and any quick pointers to debug why indexing doesn't resolve headers?

I've verified with the latest version: 2019-12 (4.14.0) Build id: 20191212-1212

Thank you.

Regards,
Kondal,
 

_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to add include paths for CDT CMake projects

Jonah Graham
Hi Kondal,

This is an active area of discussion. The cmake support in CDT is based on a newer build infrastructure called "core build" and it is still in preview stage so some of it may not work as it should. There is not much GUI provided for CMake, with the intention of users editing the cmake files themselves.

In the meantime you can also consider the cmake4eclipse which is based on the older "mbs" build infrastructure. cmake4eclipse is not part of CDT, but many users have had a good experience with it and the author is quite responsive and active on this list too.

What is your use case for the CMake plug-ins? You have already provided a number of fixes in this area and others and I appreciate your contributions back. 

Thanks,
Jonah
~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Wed, 29 Jan 2020 at 02:59, Kondal Kolipaka <[hidden email]> wrote:
Hello Team,

I couldn't find these options in the project properties for CDT CMake projects.  Below settings are available only for Make projects but not for CMake projects.

Project --> Properties --> C/C++ General -->Preprocessor Include Paths,macros,etc

Project --> Properties --> C/C++ General -->Paths and Symbols.

Could someone help in understanding why these were removed and how to add "include" paths if someone wants to add something?

I'm sure, based on compile_commands.json file CDT indexing might be resolving the headers but somehow this is not working in Windows OS(working fine in macOS). 

Do you guys see any workaround to add include paths and any quick pointers to debug why indexing doesn't resolve headers?

I've verified with the latest version: 2019-12 (4.14.0) Build id: 20191212-1212

Thank you.

Regards,
Kondal,
 
_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to add include paths for CDT CMake projects

15 knots
In reply to this post by Kondal Kolipaka
Am Mi., 29. Jan. 2020 um 08:59 Uhr schrieb Kondal Kolipaka
<[hidden email]>:

>
> Hello Team,
>
> I couldn't find these options in the project properties for CDT CMake projects.  Below settings are available only for Make projects but not for CMake projects.
>
> Project --> Properties --> C/C++ General -->Preprocessor Include Paths,macros,etc
>
> Project --> Properties --> C/C++ General -->Paths and Symbols.
>
> Could someone help in understanding why these were removed and how to add "include" paths if someone wants to add something?

CDT core build *always* parses the compile_commands.json file, which
has all information in it. So there should be no need for users to to
manually configure the providers nay longer.
Unfortunately, the parser for that file is currently somehow limited.
See bug [559674]

[559674] https://bugs.eclipse.org/bugs/show_bug.cgi?id=559674

Martin
_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to add include paths for CDT CMake projects

Kondal Kolipaka
In reply to this post by Jonah Graham
Hi Jonah, Thanks for your reply.

Espressif systems "esp-idf" projects are based on cmake - we are developing eclipse plugins based on the CDT plugins to integrate our stuff.

I'll explore "cmake4eclipse" plugin if we can use it. We are already using "CMake editor" plugin from them and it's good.

Best Regards,
Kondal

On Wed, Jan 29, 2020 at 9:07 PM Jonah Graham <[hidden email]> wrote:
Hi Kondal,

This is an active area of discussion. The cmake support in CDT is based on a newer build infrastructure called "core build" and it is still in preview stage so some of it may not work as it should. There is not much GUI provided for CMake, with the intention of users editing the cmake files themselves.

In the meantime you can also consider the cmake4eclipse which is based on the older "mbs" build infrastructure. cmake4eclipse is not part of CDT, but many users have had a good experience with it and the author is quite responsive and active on this list too.

What is your use case for the CMake plug-ins? You have already provided a number of fixes in this area and others and I appreciate your contributions back. 

Thanks,
Jonah
~~~
Jonah Graham
Kichwa Coders
www.kichwacoders.com


On Wed, 29 Jan 2020 at 02:59, Kondal Kolipaka <[hidden email]> wrote:
Hello Team,

I couldn't find these options in the project properties for CDT CMake projects.  Below settings are available only for Make projects but not for CMake projects.

Project --> Properties --> C/C++ General -->Preprocessor Include Paths,macros,etc

Project --> Properties --> C/C++ General -->Paths and Symbols.

Could someone help in understanding why these were removed and how to add "include" paths if someone wants to add something?

I'm sure, based on compile_commands.json file CDT indexing might be resolving the headers but somehow this is not working in Windows OS(working fine in macOS). 

Do you guys see any workaround to add include paths and any quick pointers to debug why indexing doesn't resolve headers?

I've verified with the latest version: 2019-12 (4.14.0) Build id: 20191212-1212

Thank you.

Regards,
Kondal,
 
_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to add include paths for CDT CMake projects

Kondal Kolipaka
In reply to this post by 15 knots
Hi Martin,

Thanks for your decision to contribute your "cmake4eclipse" work to the CDT. That really helps the community.

We have published our plugin(https://github.com/espressif/idf-eclipse-plugin) a few months ago - a lot of users reported the issues on indexing and header resolving problems and I could see some of those parser issues got resolved with your plugin.

The only problem now is - how can I port our plugin to compatible with cmake4eclipse plugin, which seems to based on the MBS. I'll get in touch with you if I need any help.

Best Regards,
Kondal

On Thu, Jan 30, 2020 at 1:33 AM 15 knots <[hidden email]> wrote:
Am Mi., 29. Jan. 2020 um 08:59 Uhr schrieb Kondal Kolipaka
<[hidden email]>:
>
> Hello Team,
>
> I couldn't find these options in the project properties for CDT CMake projects.  Below settings are available only for Make projects but not for CMake projects.
>
> Project --> Properties --> C/C++ General -->Preprocessor Include Paths,macros,etc
>
> Project --> Properties --> C/C++ General -->Paths and Symbols.
>
> Could someone help in understanding why these were removed and how to add "include" paths if someone wants to add something?

CDT core build *always* parses the compile_commands.json file, which
has all information in it. So there should be no need for users to to
manually configure the providers nay longer.
Unfortunately, the parser for that file is currently somehow limited.
See bug [559674]

[559674] https://bugs.eclipse.org/bugs/show_bug.cgi?id=559674

Martin
_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
Reply | Threaded
Open this post in threaded view
|

Re: How to add include paths for CDT CMake projects

Fabrizio Iannetti
I second that, nice to see you contributing to CDT Martin!

cheers
Fabrizio


On Fri, 31 Jan 2020 at 06:14, Kondal Kolipaka <[hidden email]> wrote:
Hi Martin,

Thanks for your decision to contribute your "cmake4eclipse" work to the CDT. That really helps the community.

We have published our plugin(https://github.com/espressif/idf-eclipse-plugin) a few months ago - a lot of users reported the issues on indexing and header resolving problems and I could see some of those parser issues got resolved with your plugin.

The only problem now is - how can I port our plugin to compatible with cmake4eclipse plugin, which seems to based on the MBS. I'll get in touch with you if I need any help.

Best Regards,
Kondal

On Thu, Jan 30, 2020 at 1:33 AM 15 knots <[hidden email]> wrote:
Am Mi., 29. Jan. 2020 um 08:59 Uhr schrieb Kondal Kolipaka
<[hidden email]>:
>
> Hello Team,
>
> I couldn't find these options in the project properties for CDT CMake projects.  Below settings are available only for Make projects but not for CMake projects.
>
> Project --> Properties --> C/C++ General -->Preprocessor Include Paths,macros,etc
>
> Project --> Properties --> C/C++ General -->Paths and Symbols.
>
> Could someone help in understanding why these were removed and how to add "include" paths if someone wants to add something?

CDT core build *always* parses the compile_commands.json file, which
has all information in it. So there should be no need for users to to
manually configure the providers nay longer.
Unfortunately, the parser for that file is currently somehow limited.
See bug [559674]

[559674] https://bugs.eclipse.org/bugs/show_bug.cgi?id=559674

Martin
_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev

_______________________________________________
cdt-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/cdt-dev