- Windows XP / Vista / 7 / 8.1 / 10
- Code::Blocks v13.12 - v16.01 with MingGW
- wxWidgets v3.0.3
- Download and release wxWidgets-3.0.3.zip (29.6 MB) and wxWidgets-3.0.2-docs-chm.zip (30.4 MB)
- Download and install codeblocks-13.12mingw-setup.exe (97.8 MB) or codeblocks-16.01mingw-setup.exe (79.9 MB)
- Set environment variable paths for wxWidgets and MingGW
( MINGW_BIN, WX_MGW) :
- Then, log off or reboot as necessary for the changes to take effect.
- Open Console DOS box then check if the MingGW make executable file works fine ( Its version is identified as 3.82. ):
Its version is identified as 3.82.90:
- Compile wxWidgets Library with MingGW GNU GCC Compiler : (Unicode, static : no DLL)
- Release Library Build : mingw32-make -f makefile.gcc BUILD=release SHARED=0 UNICODE=1 DEBUG_INFO=0 DEBUG_FLAG=0 DEBUG_RUNTIME_LIBS=0 RUNTIME_LIBS=static
- Debug Library Build : mingw32-make -f makefile.gcc BUILD=debug SHARED=0 UNICODE=1 DEBUG_INFO=1 DEBUG_FLAG=1 DEBUG_RUNTIME_LIBS=1 RUNTIME_LIBS=static
- It would take quite a while to finish the builds.
- Release Library Build : mingw32-make -f makefile.gcc BUILD=release SHARED=0 UNICODE=1 DEBUG_INFO=0 DEBUG_FLAG=0 DEBUG_RUNTIME_LIBS=0 RUNTIME_LIBS=static
- Now check if both are built correctly : Change the current directory to wxWidgets 'samples\minimal' folder : cd ..\..\samples\minimal
- Command exactly the same statement as wxWidgets release build to build release version of minimal.exe, this time :
- And do the same for debug version build.
- Now try running both builds of the "minimal.exe" to check if they run fine or not. If they do it means the wxWidgets build has been performed successfully :
No comments:
Post a Comment