Add the above installed location into the system path. Open windows console and run the below commands.
- cd (Wxwidget location)buildmsw
- mingw32-make -f makefile.gcc clean
- mingw32-make -f makefile.gcc BUILD=debug SHARED=0 MONOLITHIC=1 UNICODE=1
- mingw32-make -f makefile.gcc BUILD=release SHARED=0 MONOLITHIC=1 UNICODE=1
Notes: wxWidgets 3.1.2 emptied the advanced library (so you can get rid of wxmsw31ud_adv) and removed automatic linking to some libraries, p.e. libuxtheme and liboleacc. Add those libraries (they are in the MinGW folder) to the project and build again. It will work.