Prerequisites


To build CodeLite on you computer you will need these packages:

  • libwxgtk2.8-dev
  • libgtk2.0-dev
  • pkg-config
  • build-essential
  • subversion

To install them you need to use yours distribution package management system, e.g for Debian and Ubuntu:

 sudo apt-get install libwxgtk2.8-dev libgtk2.0-dev pkg-config build-essential subversion

If apt-get ask you for advice, press Y and ENTER.

Getting Source Code


When you have all needed packages, you need to have CodeLite source code.

You can get it by running that command in Terminal:

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

It will create directory "codelite" which will contain "trunk" directory from repository (folder where latest code is stored).

If you want older revision, add "--revision 4321" where "4321" is wanted CodeLite revision.

Building CodeLite


Now in the same directory in Terminal, run these commands:

 cd codelite
 ./configure

It will prepare Makefiles which tell next command "make" how to make CodeLite from source code.

When you will choose which mode you want use command "make" to make you CodeLite:

 make -jX

Where X is number of threads of your computer CPU.

It will use 100% CPU to compile when you run "make -j2" on machine with 2 CPU threads.
It compiles CodeLite much faster than running compile process on only one thread.

Why? Because in that example two things can be done simultaneously.


If you want to compile Debug CodeLite instead of default Release run that command:

 ./configure --enable-debug

Note that you will need the debug version of wxWidgets installed. Fortunately, it exists in almost all known repositories:

 sudo apt-get install libwxgtk2.8-dbg

Debug mode is used to find problems and specified things in lines of code. It helps developers a lot. It is much slower than Release build so if you don't want to debug CodeLite - use default Release mode which is really faster.

Installing


When you end compilation process which can took some time you will have ready to install CodeLite executable files and libraries.

All what you need to do is:

 sudo make install

Built CodeLite is now ready to run.