Eclipse CDT .cproject file from Windows to Unix
NickName:mashrur Ask DateTime:2017-04-20T12:46:54

Eclipse CDT .cproject file from Windows to Unix

I have a legacy, in-house tool that creates an Eclipse CDT project out of all the C files that I use to run Simulink simulations. I use the eclipse project as front end to GDB (in Windows using Cygwin) to debug by simulation C code. The tool uses an unchanging .cproject file to make the projects.

I am now running my simulations on Unix so I'm trying to port the tool to create an Eclipse project in Unix. I am stuck on how to turn my Windows .cproject file into a Unix .cproject file. For example in Unix Eclipse project build is giving me errors like below:

Managed Build system manifest file error: Option cdt.managedbuild.option.gnu.cross.path.2110017774 
uses a null category that is invalid in its context. The option was ignored.

I am guessing that this is being caused by the .cproject file since it is the only file in the tool that has cdt.managedbuild in it.

<option id="cdt.managedbuild.option.gnu.cross.path.2110017774" 
superClass="cdt.managedbuild.option.gnu.cross.path" value="MinGWPath" valueType="string"/>

I don't even understand what this file is doing or how it was generated in the first place. I did not create the tool and I am an Eclipse novice. Are there any resources that I could use to understand how to create, modify, and interpret a .cproject file?

Copyright Notice:Content Author:「mashrur」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/43510417/eclipse-cdt-cproject-file-from-windows-to-unix

More about “Eclipse CDT .cproject file from Windows to Unix” related questions

Eclipse CDT .cproject file from Windows to Unix

I have a legacy, in-house tool that creates an Eclipse CDT project out of all the C files that I use to run Simulink simulations. I use the eclipse project as front end to GDB (in Windows using Cyg...

Show Detail

How to write CDT plug-in version to .cproject file?

I am developing CDT plug-in for Eclipse IDE and I need to track plug-in version which C projects were created with to track compatibility issues. I need to write the CDT plug-in version to .cprojec...

Show Detail

Eclipse CDT: How to write to .cproject file and read back

How to write programmatically to .cproject file and read back (in Eclipse CDT)? A class implementing AbstractCPropertyTab has checkboxes and name and boolean state of these should be saved to .cpr...

Show Detail

Can I set the "clean" command in Eclipse Neon CDT without manually editing .cproject?

It seems to be a common problem with Eclipse CDT on Windows that Eclipse uses the Windows "del" command to perform a "clean", while using Unix-style paths and rm options. The workaround, at least f...

Show Detail

Is it safe to clone an Eclipse CDT .cproject file?

I've noticed that many attributes in an Eclipse CDT project files (.cproject) contain random numbers, e.g. cconfiguration id="ilg.gnuarmeclipse.managedbuild.cross.config.elf.debug.980615563" So:

Show Detail

headless build with CDT using .cproject configuration

I have a eclipse project with .project and .cproject, and I want automate the building process, for it I use ./eclipse -nosplash -application org.eclipse.cdt.managedbuilder.core.headlessbuild -data /

Show Detail

Change location of .project and .cproject files in Eclipse CDT

For an existing Eclipse CDT project in a given location, we can also find the files .project and .cproject in that given location. Is there a way to store these files in a complete separated locati...

Show Detail

Understanding the Eclipse CDT projects

I want to commit my CDT project to SVN. I am a newbie regarding CDT, and I'd like to know the files describing the project. The concerned files seem to be : .project .settings (directory) .cproje...

Show Detail

cmake with CDT4 eclipse generator to generate unix makefiles

cmake -G "Eclipse CDT4 - Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DCMAKE_ECLIPSE_GENERATE_SOURCE_PROJECT=TRUE -D_ECLIPSE_VERSION=4.5 -DCMAKE_SYSTEM_NAME=Windows -DPROJECT_SOURCE_DIR=C:/Projects/tr...

Show Detail

Convert an Eclipse CDT project from Windows settings to Unix settings

I have created a set of C++ projects under Eclipse CDT (Kepler - gcc - gdb), on my PC (Windows 7). Then, I uploaded them on GIT so as to make other people download them and test the contained algor...

Show Detail