Skip to main content
LThal
Associate III
February 14, 2019
Question

Conversion of project from CDT build to make project

  • February 14, 2019
  • 5 replies
  • 1494 views

True Studio gives you the option of creating a project as either a CDT project or a make file project. Is it possible to convert an existing project to a make file project?

This topic has been closed for replies.

5 replies

Dave Nadler
Senior III
February 14, 2019

Sure. In project properties->C/C++ Build->Tool Chain Editor

Select GNU Make Builder instead of internal builder

When you build the project you'll see the makefiles created in Debug or Release etc.

 0690X000006DcFxQAK.png

LThal
LThalAuthor
Associate III
February 14, 2019

Yep, I found it a few minutes ago. For some reason when I try and modify the makefile it always seems to revert to the original. It's not set for read only, so I'm trying to figure that out. I'm trying to run srec as part of the post build process, but make is having a problem with that too. Oh well, one step at a time.

Dave Nadler
Senior III
February 14, 2019

@Community member​ -You have to turn off "Generate Makefiles automatically" in C/C++ Build after you've generated your starting point; otherwise it'll keep overwriting it...

Pavel A.
Super User
February 14, 2019

It is possible to run Eclipse from command line to build the project without GUI. This even works for me on headless Linux machines (though with different version of CDT, for different targets). Converting a CDT managed project to a makefile is a pain.

-- pa

LThal
LThalAuthor
Associate III
February 14, 2019

The conversion was pretty simple once I found it. Now I have to get the post-processing commands to work.

LThal
LThalAuthor
Associate III
February 14, 2019

I got the post processing commands working. For anyone who might run into it, on Windows multiple commands are separated by ';' when doing a CDT build, but need to be separated by '&' when using a make file.