Compiling a static version of wxWidgets

407 views Asked by At

I tried a lot now but nothing is working.. I saw a lot of posts about this and a lot of answeres, but none of it is working for me... Did anybody successfully build wxWidgets as static and now the right commands?

I downloaded wxWidgets here: http://www.wxwidgets.org/downloads/

I tried for example the following commands:

mingw32-make -f makefile.gcc -j4 SHARED=0 MONOLITHIC=1 BUILD=release clean
mingw32-make -f makefile.gcc -j4 SHARED=0 MONOLITHIC=1 BUILD=release

or this:

mingw32-make -f makefile.gcc -j4 SHARED=0 MONOLITHIC=1 BUILD=release clean
mingw32-make -f makefile.gcc -j4 SHARED=0 MONOLITHIC=1 BUILD=release

But when the build is finished and I tried to compile a simple programm in Code::Blocks I get a lot of 'undefined reference' errors.

Has anybody experience with it and successfully build a static copie of wxWdigets? And if so, could you please tell me the commands you used...

I have a dynamic build which I already build and this is working... but I need a static version so I can get a working standalone exe....

1

There are 1 answers

0
Joel On

If you want to see how to build wxWidgets, good..but no with mingw, it takes ages...you can try binaries for both compilers, see wx's sourceforge site.