Author Topic: Why is C::B support for build systems so poor?  (Read 2848 times)

Offline marmistrz

  • Multiple posting newcomer
  • *
  • Posts: 18
Why is C::B support for build systems so poor?
« 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?

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: Why is C::B support for build systems so poor?
« Reply #1 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.
   
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Why is C::B support for build systems so poor?
« Reply #2 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.
(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!]

Offline marmistrz

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Why is C::B support for build systems so poor?
« Reply #3 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Why is C::B support for build systems so poor?
« Reply #4 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?
(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!]

Offline marmistrz

  • Multiple posting newcomer
  • *
  • Posts: 18
Re: Why is C::B support for build systems so poor?
« Reply #5 on: April 21, 2016, 01:40:13 pm »
Thanks, this did the trick!