Compiling wxWidgets with MinGW


Prerequisites


  • Download and install MinGW. CodeLite is built with MinGW w64 7.1 64 bit (or 32) version MinGW-w64-7.1-POSIX-SEH
  • Open CMD shell and add the bin folder to the PATH environment, e.g: C:\MinGW-64\bin
 set PATH=C:\MinGW-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 SHARED=1 UNICODE=1 BUILD=release VENDOR=cl
  • 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"

Debug


  • open CMD.EXE, cd to \Path\To\wxWidgets\Sources\build\msw and type:
  mingw32-make -f makefile.gcc setup_h SHARED=1 UNICODE=1 BUILD=debug VENDOR=cl
  • 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"
Edit - History - Print - Recent Changes - Search
Page last modified on November 13, 2017, at 06:45 PM