News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

Why is C::B support for build systems so poor?

Started by marmistrz, April 18, 2016, 01:52:30 PM

Previous topic - Next topic

marmistrz

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?

stahta01

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.
   
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

oBFusCATed

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

marmistrz

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

oBFusCATed

Have you tried to change the type of the target to console and tell it to pause at the end?
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

marmistrz