Skip to content

Building CodeLite from sources

Windows


  • Install compiler and other required tools (git etc) as described here
  • Build wxWidgets from sources. See build instructions here
  • Clone CodeLite sources:
    git clone https://github.com/eranif/codelite.git
    
  • Download and install CodeLite for Windows (64 bit) from our Download Page
  • Open the workspace CodeLiteIDE.workspace (located in the CodeLite's folder)
  • Make sure that the project CodeLiteIDE is selected (the active project uses bold font)
  • Select the Win_x64_Release build configuration and click F7
  • When the compilation is over, close the workspace
  • Close CodeLite
  • To update your installation with the new CodeLite, close CodeLite and from a cmd.exe window (opened as Administrator), navigate to codelite-sources/Runtime/ and run the file update64.bat

Linux


  • To build CodeLite on your computer you will first need to Build wxWidgets from sources
  • Install libssh-dev and libsqlite3-dev packages (or similar, depending on your distro). On Ubuntu / Debian, you can use this command:
    sudo apt install build-essential git cmake \
                     libssh-dev libsqlite3-dev 
  • Git clone the sources:
    git clone https://github.com/eranif/codelite.git
  • Build CodeLite:
 cd codelite
 mkdir build-release
 cd build-release
 cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1
 make -j$(nproc)
 sudo make install

macOS


Prerequisites:

  • wxWidgets 3.1 or later
  • CMake
  • Git
  • Xcode
  • Xcode command-line tools
  • Homebrew.

Preparation:

  • (Optional) Make a separate folder for building if you want to get rid of all except the .app file after building
  • Install Xcode from Mac App Store
  • Install Xcode command-line tools: xcode-select --install
  • Install Homebrew:
 ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Update Homebrew: brew update
  • (Optional) Upgrade Homebrew packages: brew upgrade
  • Install Git: brew install git
  • Install CMake: brew install cmake
  • Install wxWidgets: brew install wxmac --dev --use-llvm

Tip

You can choose to build wxWidgets from sources

Clone the repo (I will assume that your development folder is: /Users/$USER/src)

cd /Users/$USER/src
git clone https://github.com/eranif/codelite.git
the above will create the folder /Users/$USER/src/codelite

To build CodeLite:

cd /Users/$USER/src/codelite
mkdir build-release
cd build-release
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . -j $(sysctl -n hw.physicalcpu)
cmake --build . --target install

You should now have an app bundle /Users/$USER/src/codelite/build-release/codelite.app

To launch CodeLite:

open /Users/$USER/src/codelite/build-release/codelite.app