Author Topic: How to create a configure script?  (Read 3133 times)

Offline tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
How to create a configure script?
« on: June 28, 2018, 11:17:30 am »
Hello,
I have created a wxWidgets projct using C::B, I now need a configure or any easy build system script for it to make it possible to build without the need of the C::B IDE.

What is the best and easy way to do it?

Thank you.
« Last Edit: June 28, 2018, 02:07:47 pm by tomay3000 »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to create a configure script?
« Reply #1 on: June 28, 2018, 11:45:33 am »
Learning cmake is easier than learning autotools.
And it is starting to becoming the winning configure system in the c/c++ world.
The benefit of cmake is that it has a codeblocks project file generators and can create a project for you.
Then you won't have to maintain two build systems.
The negative is that it is an old system with some strange rules and terrible scripting language.
(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 tomay3000

  • Multiple posting newcomer
  • *
  • Posts: 61
Re: How to create a configure script?
« Reply #2 on: June 28, 2018, 02:24:15 pm »
Thank you, I'll give it a try.
How to do it from C::B, is there a plug-in ?

Thank you.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: How to create a configure script?
« Reply #3 on: June 28, 2018, 02:33:25 pm »
Nope. You have to write the cmakelist.txt files yourself manually. Same for autotools.
I'm not really sure we could provide an ide support for adding files and setting flags.
The configurations are too generic and individual, so they require manual editing.
(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!]