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
I live to help wx-kind
I live to help wx-kind
Posts: 150
Joined: Mon Apr 24, 2017 4:23 am

How to create a configure script?

Post by tomay3000 » Thu Jun 28, 2018 9:17 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.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3465
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to create a configure script?

Post by ONEEYEMAN » Thu Jun 28, 2018 2:20 pm

Hi,
Which OS you need the build for?

Thank you.

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

Re: How to create a configure script?

Post by shawnhcorey » Fri Jun 29, 2018 11:32 am

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:)

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2057
Joined: Sun Jan 03, 2010 5:45 pm

Re: How to create a configure script?

Post by PB » Fri Jun 29, 2018 11:37 am

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: 3465
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to create a configure script?

Post by ONEEYEMAN » Fri Jun 29, 2018 11:52 am

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
I live to help wx-kind
I live to help wx-kind
Posts: 150
Joined: Mon Apr 24, 2017 4:23 am

Re: How to create a configure script?

Post by tomay3000 » Fri Jun 29, 2018 2:06 pm

CMake seems interesting, it has a GUI.

ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 3465
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: How to create a configure script?

Post by ONEEYEMAN » Fri Jun 29, 2018 2:13 pm

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

Thank you.

PB
Part Of The Furniture
Part Of The Furniture
Posts: 2057
Joined: Sun Jan 03, 2010 5:45 pm

Re: How to create a configure script?

Post by PB » Fri Jun 29, 2018 6:16 pm

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