Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

GHS .gpj project to Eclipse CDT

I have searched for a while on this and have not found a good answer for it. (I am currently talking with GHS Support about this but wanted to post here to see if anyone had any experience with this. I will post an update after talking more with GHS.)

I am developing an embedded application using the Green Hills Software MULTI IDE and compiler. This is a C++ project. I am trying to port an existing .gpj project for use in Eclipse so I can take advantage of the development tools in Eclipse CDT. Has anyone had any experience doing this and could provide tips on it?

I of course want to develop in Eclipse and still compile with the GHS compiler with all of the options in my current .gpj file. Currently I have just had both applications open and have been developing the source in a separate Eclipse project and then compiling in the MULTI project manager with my current .gpj project.

This is discussed briefly here but no solutions are provided: https://www.eclipse.org/forums/index.php/t/210115/

EDIT: I am open to any suggestions for using modern editors in the MULTI Project Manager (it doesn't have to be the Eclipse CDT). The main development tools needed are autocomplete of existing variables and going to the definition of classes and variables.

like image 473
9Breaker Avatar asked Oct 17 '22 06:10

9Breaker


1 Answers

The solution that worked best for our group was to create Eclipse C++ projects that mimicked the settings in the .gpj project. To do this the source files were imported, the include paths set, the pre-processor directives were defined, and then the index was built. This way we could develop in Eclipse with all of the great tools it has. We also set up a Build Target to use the MULTI compiler and build the .gpj project through gbuild and have output in the Eclipse console. (see the figure below)

Figure 1

I talked with a support engineer at GHS and he did not recommend using the plug-in for Eclipse to integrate their compiler into Eclipse (our development has used many .gpj projects and we wanted to keep building our projects from the settings in the .gpj projects). He also did not recommend using gbuild to convert the .gpj into a makefile (he said the conversion is not always the best).

There are ways to change the default text editor in MULTI to something like Sublime Text, but creating an Eclipse project from the settings in our .gpj project has worked the best for us. We have done this process manually, and of course it could be automated with enough time.

like image 78
9Breaker Avatar answered Nov 08 '22 18:11

9Breaker