Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Cross compiling using custom toolchain
Cross compiling using custom toolchain [message #1763651] Thu, 18 May 2017 11:25 Go to next message
Jewgeni T. is currently offline Jewgeni T.Friend
Messages: 6
Registered: May 2017
Junior Member
I will ask for a possibility to set a vendor specific toolchain for cross compiling in Eclipse Neon. Is it possible and how to add a custom toolchain?

Another question is how tell the indexer to process additional header files. I see a lot of unresolved references. Adding include file entry in Preprocessor Include Paths, Macros, etc. doesn't work.

Thanks for tips!
Re: Cross compiling using custom toolchain [message #1763736 is a reply to message #1763651] Fri, 19 May 2017 08:17 Go to previous messageGo to next message
Jewgeni T. is currently offline Jewgeni T.Friend
Messages: 6
Registered: May 2017
Junior Member
Addition: it is a make project
Re: Cross compiling using custom toolchain [message #1763750 is a reply to message #1763736] Fri, 19 May 2017 09:51 Go to previous messageGo to next message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 416
Registered: June 2014
Senior Member
Have you had a look at C/C++ GCC Cross Compiler Support? What kind of problems are you facing/what are you trying to do?
Re: Cross compiling using custom toolchain [message #1763763 is a reply to message #1763750] Fri, 19 May 2017 11:19 Go to previous messageGo to next message
Jewgeni T. is currently offline Jewgeni T.Friend
Messages: 6
Registered: May 2017
Junior Member
Thank you for reply.
Yes, I have set for my project Cross GCC from Toolchains. It is a make project.
Cross settings are specified in makefile, but is it not important to tell the indexer what compiler should be used (e.g. builtins)?
Re: Cross compiling using custom toolchain [message #1763774 is a reply to message #1763763] Fri, 19 May 2017 14:02 Go to previous messageGo to next message
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 416
Registered: June 2014
Senior Member
In project settings -> C/C++ General -> Preprocessor include paths, etc -> Providers (tab).

Select CDT Cross GCC Built-in Compiler Settings and change the compile to the one you are using:

index.php/fa/29407/0/

If your toolchain is ARM, you may find the http://gnuarmeclipse.github.io/ extensions useful.
  • Attachment: toolchain.png
    (Size: 119.41KB, Downloaded 6255 times)
Re: Cross compiling using custom toolchain [message #1763776 is a reply to message #1763774] Fri, 19 May 2017 14:30 Go to previous messageGo to next message
Jewgeni T. is currently offline Jewgeni T.Friend
Messages: 6
Registered: May 2017
Junior Member
Thank you very much
Re: Cross compiling using custom toolchain [message #1763784 is a reply to message #1763776] Fri, 19 May 2017 15:49 Go to previous messageGo to next message
Jewgeni T. is currently offline Jewgeni T.Friend
Messages: 6
Registered: May 2017
Junior Member
Unfortunately it seems not working correctly.
I get the following problem message:
Description Resource Path Location Type
Program "-E" not found in PATH vibrante Project Properties, C++ Preprocessor Include.../Providers, [CDT Cross GCC Built-in Compiler Settings] options C/C++ Scanner Discovery Problem
Re: Cross compiling using custom toolchain [message #1763786 is a reply to message #1763784] Fri, 19 May 2017 16:19 Go to previous message
Jewgeni T. is currently offline Jewgeni T.Friend
Messages: 6
Registered: May 2017
Junior Member
But the output on GCC Built-in Compiler Settings console looks like ok
Previous Topic:MSP430 break points - Neon 3
Next Topic:Problem exporting project settings
Goto Forum:
  


Current Time: Thu Apr 25 16:32:21 GMT 2024

Powered by FUDForum. Page generated in 0.03549 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top