Wednesday, April 25, 2007

Compile WxWidgets with Code::Blocks by MinGW

First step:

Second step:
  • 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
Third step:
  • 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
about the compilation option, I compile 2 edition
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: