-
Notifications
You must be signed in to change notification settings - Fork 483
Windows
Eran Ifrah edited this page Dec 3, 2018
·
3 revisions
- Download and install MinGW. CodeLite is built with MinGW w7.1 64 Bit
- Install
gitfor Windows
For this short tutorial, I will assume that you have:
- cloned wxWidgets into
C:\src\wxWidgets - MinGW is installed under
C:\MinGW
First, you will need to clone wxWidgets from our repository. To do this, open a CMD shell and type:
git clone https://github.com/eranif/wxWidgets.git
cd C:\src\wxWidgets\
git submodule init
git submodule updateNext, CodeLite requires graphics context to be enabled, however, this is disabled by default under Windows. To enable this, open a terminal and type:
set PATH=C:\MinGW\bin;%PATH%
cd C:\src\wxWidgets\build\msw
mingw32-make -f makefile.gcc setup_h SHARED=1 UNICODE=1 BUILD=release VENDOR=clThis will generate the file C:\src\wxWidgets\lib\gcc_dll\mswu\wx\setup.h
Open this file in a text editor and change the line containing:
# define wxUSE_GRAPHICS_CONTEXT 0into:
# define wxUSE_GRAPHICS_CONTEXT 1Now, we are ready to start the build process:
cd C:\src\wxWidgets\build\msw
mingw32-make -j8 -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=release VENDOR=cl CXXFLAGS="-fno-keep-inline-dllexport -std=c++11"- Download CodeLite installer for Windows from our Download Page
- Clone CodeLite sources into
C:\src\codelite - Open the workspace
C:\src\codelite\LiteEditor.workspace - Make sure that the project
CodeLiteIDis selected (the active project uses bold font) - Select the
Win_x64_ReleaseorWin_x86_Release(depending if you want to build a 32 or 64 bit version of CodeLite) and hitF7 - When the compilation is over, close the workspace
- Next, locate the workspace
codelite_utils\codelite_utils.workspceand open it - Select the
Win_x64_ReleaseorWin_x86_Release(depending if you want to build a 32 or 64 bit version of CodeLite), hitF7and wait for the compilation to end - Close CodeLite
- To update your installation with the new CodeLite, close CodeLite and from a
cmd.exewindow navigate toC:\src\codelite\Runtimeand run the fileupdate64.batORupdate.bat(again, depending on your selected arch).