Page 1 of 3

Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 1:51 pm
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.

Re: Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 1:55 pm
by eranon
There are compiled wxWidgets available on the wxWidgets website (see the "Binaries" section): https://www.wxwidgets.org/downloads/

Re: Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 2:04 pm
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?

Re: Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 2:24 pm
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).

Re: Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 2:47 pm
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.

Re: Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 3:43 pm
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?

Re: Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 3:52 pm
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.

Re: Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 5:08 pm
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.

Re: Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 6:40 pm
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.

Re: Why there is no compiled WxWidgets version?

Posted: Tue Dec 19, 2017 10:12 pm
by ONEEYEMAN
eranon,
But as you said, -jx can decrease the build time..

Thank you.

Re: Why there is no compiled WxWidgets version?

Posted: Wed Dec 20, 2017 8:59 am
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'

Re: Why there is no compiled WxWidgets version?

Posted: Wed Dec 20, 2017 10:30 am
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)...

Re: Why there is no compiled WxWidgets version?

Posted: Thu Dec 21, 2017 1:00 pm
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?

Re: Why there is no compiled WxWidgets version?

Posted: Thu Dec 21, 2017 1:07 pm
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'

Re: Why there is no compiled WxWidgets version?

Posted: Thu Dec 21, 2017 3:11 pm
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?