Recent Changes - Search:

Linux Repositories


Building CodeLite - Linux
Building CodeLite - Windows
Building CodeLite - OSX
Building wxWidgets for Windows
Coding Guidelines
Creating a Plugin
wxWidgets repositories

Submit an Issue

Mailing List

General Info

Building CodeLite

Here are links to the CodeLite Build 'howto's for the various platforms:

Linux extras

Clang + LLDB

codelite uses libclang for its code completion engine. is provided in the codelite's source tree, however, these
binaries may not be compatible with your own distro, in this case you will need to build one by yourself.
In a more recent versions of codelite, liblldb (the LLVM based debugger) is also required

In this section I will cover how to build clang/lldb under Linux

Step 1: Getting the sources + compiling

  • You will need svn client installed, first you need to checkout llvm sources, followed by clang sources (lets assume that your current directory is set to /home/eran):
svn co llvm
cd llvm/tools/
svn co clang
svn co lldb
  • Building lldb also requires some extra packages. On Debian/Ubuntu, you can install them all by typing:
sudo apt-get install build-essential subversion swig python2.7-dev libedit-dev libncurses5-dev ninja-build
  • Its is recommend to perform the build outside the source tree:

Using CMake (recommended):

cd /home/eran/llvm
mkdir build-release
cd build-release
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release

Or you can do it instead using classic configure:

cd /home/eran/llvm
mkdir build-release
cd build-release
../configure --enable-optimized --disable-assertions --disable-debug --disable-shared --disable-threads --disable-pthreads
make -j8

When the compilation is over, you will need to copy the to the correct location in codelite's source tree:
On Mac:


and on Linux:


And finally, build CodeLite:

mkdir build-release
cd build-release 
cmake -G "Unix Makefiles" ..
make -j8
[become super-user]
make install

Building clang (Windows)

Use CMake to build clang:

Assuming your working directory is C:\clang-src, open CMD shell and type:

cd C:\clang-src
svn co llvm
cd llvm\tools
svn co clang

Now, change directory back to the root folder C:\clang-src:

cd C:\clang-src\llvm
mkdir build-release
cd build-release
cmake -G "MinGW Makefiles" -DCMAKE_BUILD_TYPE=Release ..

When the compilation is completed, copy clang.dll to its proper location on codelite's tree

Edit - History - Print - Recent Changes - Search
Page last modified on April 11, 2014, at 12:22 PM