-
Notifications
You must be signed in to change notification settings - Fork 464
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
git
for 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 update
Next, 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=cl
This 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 0
into:
# define wxUSE_GRAPHICS_CONTEXT 1
Now, 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
CodeLiteID
is selected (the active project uses bold font) - Select the
Win_x64_Release
orWin_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.workspce
and open it - Select the
Win_x64_Release
orWin_x86_Release
(depending if you want to build a 32 or 64 bit version of CodeLite), hitF7
and wait for the compilation to end - Close CodeLite
- To update your installation with the new CodeLite, close CodeLite and from a
cmd.exe
window navigate toC:\src\codelite\Runtime
and run the fileupdate64.bat
ORupdate.bat
(again, depending on your selected arch).