How to create a configure script?

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

How to create a configure script?

Post by tomay3000 »

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.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to create a configure script?

Post by ONEEYEMAN »

Hi,
Which OS you need the build for?

Thank you.
User avatar
shawnhcorey
Knows some wx things
Knows some wx things
Posts: 41
Joined: Mon Nov 19, 2012 3:29 pm
Location: The Great White North

Re: How to create a configure script?

Post by shawnhcorey »

tomay3000 wrote: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.
The best way is to use make but it's not easy. (That's why IDEs were invented. :wink:)
WARNING: Highly caffeinated ☕. Approach with caution 🚧.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: How to create a configure script?

Post by PB »

It seems CMake is still the uncrowned leader, at least when it comes to supporting various OSes, compilers, and IDEs. It has built-in support for wxWidgets.

wxWidgets itself also includes CMake support for building the library, samples, and tools.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to create a configure script?

Post by ONEEYEMAN »

Hi,
Using CMake for building the library itself is still unofficial way. Official (and supported) way is to use "configure + make".
I'd definitely prefer to use IDE - Anjuta comes to mind for *nix. It will generate everything for you.

Thank you.
tomay3000
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 207
Joined: Mon Apr 24, 2017 4:23 am

Re: How to create a configure script?

Post by tomay3000 »

CMake seems interesting, it has a GUI.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to create a configure script?

Post by ONEEYEMAN »

Hi,
IDE, like Anjuta also have a GUI. ;-)

Thank you.
PB
Part Of The Furniture
Part Of The Furniture
Posts: 4193
Joined: Sun Jan 03, 2010 5:45 pm

Re: How to create a configure script?

Post by PB »

tomay3000 wrote:CMake seems interesting, it has a GUI.
It is probably clear, but just to make sure. CMake's GUI (cmake-gui.exe) is used to generate the project files (makefiles and GUI projects) from the CMake script, i.e., it is not for creating the CMakefiles themselves. AFAIK, those have to be generally created by hand.
Post Reply