Skip to content

Building CodeLite from sources



We only support MSYS2 terminal

pacman -S mingw-w64-clang-x86_64-zlib     \
          mingw-w64-clang-x86_64-libssh   \
          mingw-w64-clang-x86_64-hunspell \
          mingw-w64-clang-x86_64-openssl  \
          mingw-w64-clang-x86_64-sqlite3  \
  • Download and build wx-config.exe from sources:
git clone
cd wx-config-msys2
mkdir build-release
cd $_
cmake .. -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" -DCMAKE_INSTALL_PREFIX="$HOME/root"
mingw32-make -j$(nproc) install
  • Add $HOME/root/bin to your path and make sure that which wx-config points to the newly installed wx-config
  • Build CodeLite (in Release mode):
  • Set the environment variable MSYS2_BASE to point to MSYS2 root installation folder (e.g. C:/msys64)
git clone
cd codelite
git submodule update --init --recursive
mkdir build-release
cd $_
cmake .. -DCMAKE_BUILD_TYPE=Release -G"MinGW Makefiles" -DWXWIN="$HOME/root" -Wno-dev
mingw32-make -j$(nproc) install


To build CodeLite in debug mode, replace CMake argument from: -DCMAKE_BUILD_TYPE=Release into -DCMAKE_BUILD_TYPE=Debug

  • To run the new CodeLite:
cd build-release/install


  • 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 flex             \
                     libssh-dev libsqlite3-dev  \
  • Git clone the sources:
    git clone
    cd codelite
    git submodule update --init --recursive
  • Build CodeLite:
 cd codelite
 mkdir build-release
 cd build-release
 make -j$(nproc)
 sudo make install
  • To uninstall CodeLite:
cd build-release # cd to the build directory
sudo xargs rm -vf < install_manifest.txt



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


  • (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 (or you can type clang from the command line and if it is missing you will be prompted to install it)
  • Install Homebrew:
 ruby -e "$(curl -fsSL"
  • Install the required libraries:
brew update
brew install git        \
             cmake      \
             flex       \
             autoconf   \
             automake   \
             libtool    \
  • Usually, brew will install everything under /opt/homebrew, so run this from the terminal:
echo 'export PATH=/opt/homebrew/bin:$PATH' >> $HOME/.$(basename $SHELL)rc
source $HOME/.$(basename $SHELL)rc
    mkdir -p $HOME/src
    cd $HOME/src
    git clone
    cd codelite
    git submodule update --init --recursive

    # build CodeLite release configuration
    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 $HOME/src/codelite/build-release/

To launch CodeLite:

  • open $HOME/src/codelite/build-release/

Back to top