Recent Changes - Search:

Home Page


Main

Downloads
Windows
macOS
Linux (via apt / rpm )
Linux wxWidgets
Release Notes

Wiki
Documentation
FAQ

Build CodeLite
Linux
Windows
macOS

Devs
Debug CodeLite Linux
Building Clang
Build wxWidgets (MSW)
Coding Guidelines
Create a Plugin

BuildingWxWidgetsWin


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
  • If you have cloned wxWidgets repository from git master, you will also need to run this git submodule update --init from the root wxWidgets folder

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 and wxUSE_GRAPHICS_DIRECT2D are both set to 1:
#   define wxUSE_GRAPHICS_CONTEXT 1
...
#   define wxUSE_GRAPHICS_DIRECT2D 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 March 01, 2021, at 10:14 AM