compiling wxWidgets 2.8.12 on Windows

Do you have a typical platform dependent issue you're battling with ? Ask it here. Make sure you mention your platform, compiler, and wxWidgets version.
Post Reply
Jacek Poplawski
Knows some wx things
Knows some wx things
Posts: 38
Joined: Mon Jun 20, 2011 12:03 pm

compiling wxWidgets 2.8.12 on Windows

Post by Jacek Poplawski » Sun Nov 18, 2012 4:41 pm

After few years I decided to give another try to wxWidgets on Windows.
It was three days ago, I tried many ways (configure/make, etc) but all failed.

I installed MinGW/msys and downloaded 2.8.12 MSW from wxWidgets website.
Then I entered build/msw and used following command:

C:\wxWidgets-2.8.12\build\msw>mingw32-make SHELL=CMD.exe -f makefile.gcc BUILD=release UNICODE=1 SHARED=0 MONOLITHIC=1

after long compilation it stops on:

ar: gcc_mswu\monolib_dragigg.o: No such file or directory
mingw32-make: *** [..\..\lib\gcc_lib\libwxmsw28u.a] Error 1

searching for "monolib_dragigg" on google gives no results

any ideas what I am doing wrong?

compilation without MONOLITHIC=1 works, but then I am not able to link my app, because lots of undefined references, even if I link each library from build folder

wxNewbie
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Sep 30, 2012 2:43 pm

Re: compiling wxWidgets 2.8.12 on Windows

Post by wxNewbie » Wed Nov 21, 2012 1:13 pm

Perhaps, conflict between ming make and msys make. Try to use batch file like

Code: Select all

set WXWIN=C:\wxWidgets-2.8.12
set WXLIB=lib\gcc_lib
set path=C:\MinGW\bin

mingw32-make.exe -f makefile.gcc BUILD=release MONOLITHIC=1 UNICODE=1 SHARED=0
Path MUST be just to ming/bin folder

Post Reply