Why there is no compiled WxWidgets version?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
gtafan
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Wed Mar 29, 2017 9:52 am

Why there is no compiled WxWidgets version?

Post by gtafan »

I am worcking with WxWidgets since some years, at the beginig I have used WxDev which was a very easy to use tool for worckin with WxWidgets, but since its outdated I have to use other tools. At the moment I am using Code Blocks which has also suport for WxWidget projects, but the bigest problem is, that you have to build WxWidgets for it separatly, which was my bigest nightmare cosidering programming. I know WxWidgets can worck on diferent OS and with different compilers, but why there is no compiled version at least for the recently used compilers on Windows? A compiled WxWidget version would really make it easier to worck with it.
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Why there is no compiled WxWidgets version?

Post by eranon »

There are compiled wxWidgets available on the wxWidgets website (see the "Binaries" section): https://www.wxwidgets.org/downloads/
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
gtafan
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Wed Mar 29, 2017 9:52 am

Re: Why there is no compiled WxWidgets version?

Post by gtafan »

eranon wrote:There are compiled wxWidgets available on the wxWidgets website (see the "Binaries" section): https://www.wxwidgets.org/downloads/
So I don´t really have to build them any more?
Which files do I have to download then?
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Why there is no compiled WxWidgets version?

Post by eranon »

One matching the family of compilers you are using (ie. about Windows, there's MSVC or GCC). Also, notice the binaries available here are shared libs only (DLL on Windows) since for static linking you'll need to build it yourself to be sure to provide the exact same build options as the one used in your wxWidgets-based project(s).
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
gtafan
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Wed Mar 29, 2017 9:52 am

Re: Why there is no compiled WxWidgets version?

Post by gtafan »

eranon wrote:One matching the family of compilers you are using (ie. about Windows, there's MSVC or GCC). Also, notice the binaries available here are shared libs only (DLL on Windows) since for static linking you'll need to build it yourself to be sure to provide the exact same build options as the one used in your wxWidgets-based project(s).
So it should be GCC I am using, at least it defenetlly not MSVC. But what about that dll stuff, have only used static builds befor, but since building is a realy huge pain in the as, I have to take that pill of using dlls. I mean it took about an hour to buld WxWidgets the last time, something I dont want to do again.
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Why there is no compiled WxWidgets version?

Post by eranon »

There're pros and cons about both DLL and static: https://www.google.fr/search?q=wxwidgets+dll+vs+static. For me, DLL has sense only if it's really shared between several apps (ie. in a common location) or when you have no other choice (eg. I'm using libiconv-2.dll with one of my app because I never found the material to build it as static lib) or to do some quick tests or to speed up the linking time (for the DEBUG build during you dev cycle for example), etc. Well, IRL I'm going static unless other real reason.

Well, 1 hour is a little long.... It all depends on your hardware. Do you use the "-j" option to to shorten this duration?
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
gtafan
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Wed Mar 29, 2017 9:52 am

Re: Why there is no compiled WxWidgets version?

Post by gtafan »

eranon wrote:There're pros and cons about both DLL and static: https://www.google.fr/search?q=wxwidgets+dll+vs+static. For me, DLL has sense only if it's really shared between several apps (ie. in a common location) or when you have no other choice (eg. I'm using libiconv-2.dll with one of my app because I never found the material to build it as static lib) or to do some quick tests or to speed up the linking time (for the DEBUG build during you dev cycle for example), etc. Well, IRL I'm going static unless other real reason.

Well, 1 hour is a little long.... It all depends on your hardware. Do you use the "-j" option to to shorten this duration?
Not using any options, just copy pasted the comandline from some tutorial. As Windows user I am not familiar with all that comandline stuff. The hour it took to build the WxWidgets was nothing against the time it took to find the worcking version of comandline.
The problem I am having with dlls is that you have to distribute them with the applikation.
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Why there is no compiled WxWidgets version?

Post by ONEEYEMAN »

Hi,
Out of curiosity - what command did you use to build the library?
If you have a relatively new hardware it shouldn't be that long...

Thank you.
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Why there is no compiled WxWidgets version?

Post by eranon »

gtafan wrote:Not using any options, just copy pasted the comandline from some tutorial. As Windows user I am not familiar with all that comandline stuff. The hour it took to build the WxWidgets was nothing against the time it took to find the worcking version of comandline.
The problem I am having with dlls is that you have to distribute them with the applikation.
Nobody is familiar before to become familiar ;) The question is just your relationship to the learning curve.

Whatever the command line the build duration will be not drastically different. Well, for example, building wxWidgets 64-bit release static libs takes about 10 minutes against TDM64-GCC 4.7 in a PC with an AMD FX-8370, 16GB RAM, and all dev material on SSD. Of course, if you want 32 & 64-bit, DEBUG and RELEASE, it's four times the same... But it doesn't change everyday, the main options are just MONOLITHIC=0|1, SHARED=0|1 and BUILD=debug|release (the rest is optimization, specificities and personal choices).

--
EDIT: Forgotten to indicate that this duration is obtained passing "-j8" in command line; otherwise, it's obviously far slower.
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7459
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: Why there is no compiled WxWidgets version?

Post by ONEEYEMAN »

eranon,
But as you said, -jx can decrease the build time..

Thank you.
User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: Why there is no compiled WxWidgets version?

Post by xaviou »

Hi.
eranon wrote:There are compiled wxWidgets available on the wxWidgets website (see the "Binaries" section): https://www.wxwidgets.org/downloads/
And if the choice you have using this link, you can have a look here : you will be able to download differents configurations that can be installed in one time.

Regards
Xav'
My wxWidgets stuff web page : X@v's wxStuff
User avatar
eranon
Can't get richer than this
Can't get richer than this
Posts: 867
Joined: Sun May 13, 2012 11:42 pm
Location: France
Contact:

Re: Why there is no compiled WxWidgets version?

Post by eranon »

xaviou wrote:Hi.
eranon wrote:There are compiled wxWidgets available on the wxWidgets website (see the "Binaries" section): https://www.wxwidgets.org/downloads/
And if the choice you have using this link, you can have a look here : you will be able to download differents configurations that can be installed in one time.
Nice, Xaviou ;) I didn't know this page. Hope the op will be back here (since you provide static flavor of the libs too)...
[Ind. dev. - wxWidgets 3.0/3.1 under "Win 7 64-bit, TDM64-GCC" + "OS X 10.9, LLVM Clang"]
gtafan
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Wed Mar 29, 2017 9:52 am

Re: Why there is no compiled WxWidgets version?

Post by gtafan »

xaviou wrote:Hi.
eranon wrote:There are compiled wxWidgets available on the wxWidgets website (see the "Binaries" section): https://www.wxwidgets.org/downloads/
And if the choice you have using this link, you can have a look here : you will be able to download differents configurations that can be installed in one time.

Regards
Xav'
This sounds awsome and exactly like what I was searching for.
Is the 3.0.3 version there the same, as called stable?
User avatar
xaviou
Super wx Problem Solver
Super wx Problem Solver
Posts: 437
Joined: Mon Aug 21, 2006 3:18 pm
Location: Annecy - France
Contact:

Re: Why there is no compiled WxWidgets version?

Post by xaviou »

gtafan wrote:Is the 3.0.3 version there the same, as called stable?
Yes : it relies on the same git tag 3.0.3

If you prefer : you can only download one or more build package and get the sources one from the official site.

Regards
Xav'
My wxWidgets stuff web page : X@v's wxStuff
gtafan
Filthy Rich wx Solver
Filthy Rich wx Solver
Posts: 201
Joined: Wed Mar 29, 2017 9:52 am

Re: Why there is no compiled WxWidgets version?

Post by gtafan »

xaviou wrote:
gtafan wrote:Is the 3.0.3 version there the same, as called stable?
Yes : it relies on the same git tag 3.0.3

If you prefer : you can only download one or more build package and get the sources one from the official site.

Regards
Xav'
Yes I prefer to get the sorces, or to be more precise headers, from the official site and avoid git.
Is there some kind of reedmee about how to bring the sorces and this compiled libs together, so it´ll worck in Code Blocks?
Post Reply