Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: marmistrz on April 18, 2016, 01:52:30 pm

Title: Why is C::B support for build systems so poor?
Post by: marmistrz on April 18, 2016, 01:52:30 pm
I've not decided which IDE to use for my future C project, I'll choose between QtCreator and C::B.

The thing that makes me wonder is the build system support. I think I'll use either cmake or plain makefiles, rather cmake. But, to my surpise its support is really poor. All I seem to be able to do is to create a .cbp file. It's all fine for development but later, when I decide to release it, I'll have to build it via bash commands. When cmake && make would do the trick, .cbp is unbuildable without the whole GUI.

I tried generating a .cbp via the cmake -G option, but then I get:
    You must select a host application to "run" a commands-only target...

Qt Creator doesn't have any problems to use cmake for building and running. Why is the support for build systems so poor in C::B?
Title: Re: Why is C::B support for build systems so poor?
Post by: stahta01 on April 18, 2016, 04:24:48 pm
cmake support for generation CB native projects is slightly poor.
And, CB Support for non-native custom makefile projects could use some slight improvements to support makefiles generated by cmake.

While I believe Qt Creator using makefiles as their native build system.

Tim S.
   
Title: Re: Why is C::B support for build systems so poor?
Post by: oBFusCATed on April 18, 2016, 07:26:19 pm
The cmake generator for codeblocks is developed and maintained by the cmake developers.
So if you have complaints about it you have to talk to them.

Using plain makefiles with cb is not really a problem. You have to make a custom makefile project and then everything should work just fine.
Title: Re: Why is C::B support for build systems so poor?
Post by: marmistrz on April 20, 2016, 10:08:56 am
And is it possible for the console_runner to be automatically used for my project? When I submit the executable name, it launches, but the terminal window instantly disappears because console_runner is not used
Title: Re: Why is C::B support for build systems so poor?
Post by: oBFusCATed on April 20, 2016, 07:03:03 pm
Have you tried to change the type of the target to console and tell it to pause at the end?
Title: Re: Why is C::B support for build systems so poor?
Post by: marmistrz on April 21, 2016, 01:40:13 pm
Thanks, this did the trick!