Compile WxWidgets with Code::Blocks by MinGW
First step:
- download the Code::Blocks v1.0 RC2 with MINGW compiler and install it to your system
- download WxWidgets 2.6.2(might in .7z or setup file format) and then install it to the dictionary C:\wxWidgets-2.6.2, or you can choose the other dictionary.
- And then we need to compile WxWidgets with Code::Blocks by MINGW
- In command prompt, enter the following commands
- C:\cd wxwidgets-2.6.2/build/msw
- C:\mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=1 VENDOR=cb
- C:\cd ..\..\contrib\build\stc
- C:\mingw32-make -f makefile.gcc BUILD=release SHARED=1 MONOLITHIC=1 USE_XRC=1 UNICODE=1 VENDOR=cb
BUILD=release UNICODE=1
BUILD=debug UNICODE=1 (change "release" to "debug" in third step and do it again)
Finally you can find there's a folder " \gcc_dll\ " build in C:\wxwidgets-2.6.2\lib, and then copy the dll files "wxmsw26u_gcc_cb.dll" and "wxmsw26ud_gcc_cb.dll" located in C:\wxwidgets-2.6.2\lib\gcc_lib into C:\windows\system32
No comments:
Post a Comment