Prerequisites


The first step in helping in the development of CodeLite is to build it. You will need:

  • CodeLite installed
  • MinGW and gdb installed
  • wxWidgets libraries built

The easiest way is to download CodeLite which bundles MinGW and WX from here: CodeLite Download

Make sure you download the correct package which includes WX + MinGW

Compiling WX with MinGW (without MSYS)


You can compile wxWidgets with MinGW without MSYS using the following steps:

  • Install codelite with MinGW bundled or install it yourself from here MinGW Site
  • Download the latest stable wxWidgets sources (at the time of writing this, it was wxWidgets 2.8.12)

Next, open a CMD window (Start | Run | cmd.exe) and type:

 cd \Path\To\wxWidgets\Sources\build\msw
 mingw32-make -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=release MONOLITHIC=1

Next, open a CMD window (Start | Run | cmd.exe) and type:

 cd \Path\To\wxWidgets\Sources\build\msw
 mingw32-make -f Makefile.gcc SHARED=1 UNICODE=1 BUILD=release MONOLITHIC=1 DEBUG_FLAG=0

Compiling WX with MinGW / MSYS


You can compile wxWidgets with MinGW using the automake configure script.
Aside from MinGW, you'll need:

After installing MSYS, be sure to add these directories to you system PATH variable (Right click on My Computer -> Properties -> Environment Variables -> Path )

  • <path-to-mingw>/bin
  • <path-to-msys>/bin
  • <path-to-msys>/local/bin

Next, open MSYS console and go to you wx source directory and type:

 ./configure --enable-unicode --enable-debug --enable-monolithic
 make
 make install

You can find more information on the wxWidgets wiki.

After the build has completed, go to <msys-path>/local/bin and rename wxconfig to wxconfig.exe (must be a bug in the mingw configuration script)

Next, you have to set up the include/lib directories for wx in CodeLite:

  • Go to Settings -> Build Settings -> gnu g++ -> Advanced
  • include: <path-to-msys>\local\include\wx-2.8
  • include: <path-to-msys>\local\lib\wx\include\msw-unicode-debug-2.8
  • lib: <path-to-msys>\local\lib

Getting the source code via SVN


Install SVN

If you haven't got it already, you will need to install SVN.

We recommend you download and install the SlikSVN from here.
Following a successful installation you should be able to run the svn applications from command prompt.

Obtain the latest code

Checkout CodeLite sources from here:

 svn co https://codelite.svn.sourceforge.net/svnroot/codelite/trunk codelite

Build CodeLite


  • Launch CodeLite
  • Open the workspace codelite_utils/codelite_utils.workspce and open it
  • Select the Release build configuration hit F7 and wait for the compilation to end
  • Close the workspace
  • Open the workspace LiteEditor.workspace
  • Select the configuration you wish to build (Win Release Unicode)
  • Build (F7).
  • To update your installation with the new codelite, close codelite and from a CMD.EXE window navigate to codelite-sources/Runtime/ and run the file
    update.bat

Installation of compiled CodeLite


  • Go to your SVN trunk directory of CodeLite repository
  • Right click on "update.bat" and select "Run as administrator" (in Windows XP it is not needed, just double click on it)