Skip to content

Building CodeLite on Linux

dghart edited this page Feb 28, 2020 · 5 revisions

Prerequisites

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

  • The gtk development package: often called libgtk-3.0-dev or gtk3-devel or similar
  • pkg-config (which usually comes with the gtk dev package)
  • The build-essential package (or the relevant bit of it: g++, make etc)
  • git
  • cmake

You can use the following command on Ubuntu:

sudo apt-get install     
        libgtk-3.0-dev    
        pkg-config       
        build-essential  
        git              
        cmake            
        libsqlite3-dev   
        libssh-dev       
        libedit-dev      
        libhunspell-dev  
        libclang-6.0-dev 
        clang-format-6.0 
        xterm            
        liblldb-6.0-dev

Building wxWidgets

First, you will need to build wxWidgets (the example below shows how to build wxWidgets against GTK+3):

cd ~/devl
git clone https://github.com/eranif/wxWidgets.git
cd ~/devl/wxWidgets
git submodule init
git submodule update
mkdir build-release
cd build-release
../configure --with-gtk=3
make -j8 && sudo make install

Building and installing CodeLite

Assuming you checked out your CodeLite sources into ~/devl/codelite:

cd ~/devl/codelite
mkdir build-release
cd build-release
cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1
make -j8
sudo make install

That's it!

Uninstalling CodeLite

CodeLite uses CMake for its build system. CMake does not provide an uninstall target. However, you can use this command to uninstall CodeLite which was previously installed using sudo make install command:

cd ~/devl/codelite/build-release
sudo xargs rm < install_manifest.txt