Recent Changes - Search:

Downloads
Download
Linux Repositories

wiki
Documentation

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

Support
Submit an Issue

Community
Mailing List
Forums

General Info
Features


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. clang.so 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 http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools/
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
svn co http://llvm.org/svn/llvm-project/lldb/trunk 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
ninja

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 libclang.so to the correct location in codelite's source tree:
On Mac:

CODELITE_SOURCES/sdk/clang/lib/

and on Linux:

CODELITE_SOURCES/sdk/clang/Linux/<ARCH>/lib/

And finally, build CodeLite:

cd CODELITE_SOURCES/
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 http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm\tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk 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 ..
mingw32-make

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