Compiling wxWidgets with MinGW


Prerequisites


  • Download and install MinGW. CodeLite is built with MinGW TDM 4.9.2 64 bit version TDM GCC
  • By default the installer will place install it under C:\TDM-GCC-64
  • Open CMD shell and add the folder C:\TDM-GCC-64\bin to the PATH environment variable:
 set PATH=C:\TDM-GCC-64\bin;%PATH%
  • Download wxWidgets sources, codelite requires wxWidgets 3.0 or later from here

Release


CodeLite requires a wxWidgets build which enables Graphic Context, to do this:

  • open CMD.EXE, cd to \Path\To\wxWidgets\Sources\build\msw and type:
  mingw32-make -f makefile.gcc setup_h
  • Next, open the file: \path\to\wxwidgets\lib\gcc_dll\mswu\wx\setup.h and ensure that wxUSE_GRAPHICS_CONTEXT is set to 1:
#   define wxUSE_GRAPHICS_CONTEXT 1
  • Start the build
 mingw32-make -j8 -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=release VENDOR=cl CXXFLAGS="-fno-keep-inline-dllexport -std=c++11" MONOLITHIC=1

Debug


  • open CMD.EXE, cd to \Path\To\wxWidgets\Sources\build\msw and type:
  mingw32-make  -f makefile.gcc setup_h
  • Next, open the file: \path\to\wxwidgets\lib\gcc_dll\mswud\wx\setup.h and change line 784 (ish) to:
#   define wxUSE_GRAPHICS_CONTEXT 1
  • Start the build
 mingw32-make -j8 -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=debug VENDOR=cl CXXFLAGS="-fno-keep-inline-dllexport -std=c++11" MONOLITHIC=1
Edit - History - Print - Recent Changes - Search
Page last modified on March 24, 2016, at 04:33 PM