CodeLite - CodeLite Documentation (original) (raw)

Building CodeLite from sources

Windows


Important

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 \ mingw-w64-clang-x86_64-libmariadbclient \ mingw-w64-clang-x86_64-postgresql \ flex bison

git clone https://github.com/eranif/wx-config-msys2.git 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

git clone https://github.com/eranif/codelite.git 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

Note

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

cd build-release/install ./codelite

Linux


sudo apt install build-essential \ git cmake \ libssh-dev libsqlite3-dev \ libmariadb-dev \ libpq-dev \ libpcre2-dev bison flex

git clone https://github.com/eranif/codelite.git cd codelite git submodule update --init --recursive

cd codelite mkdir build-release cd build-release cmake -DCMAKE_BUILD_TYPE=Release .. -DCOPY_WX_LIBS=1 make -j$(nproc) sudo make install

cd build-release # cd to the build directory sudo xargs rm -vf < install_manifest.txt


macOS


Prerequisites:

Preparation:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

brew update brew install git \ cmake \ flex \ autoconf \ automake \ libtool \ mariadb \ postgresql \ gettext

echo 'export PATH=/opt/homebrew/bin:$PATH' >> <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>H</mi><mi>O</mi><mi>M</mi><mi>E</mi><mi mathvariant="normal">/</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">HOME/.</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathnormal" style="margin-right:0.08125em;">H</span><span class="mord mathnormal" style="margin-right:0.05764em;">OME</span><span class="mord">/.</span></span></span></span>(basename $SHELL)rc source <span class="katex"><span class="katex-mathml"><math xmlns="http://www.w3.org/1998/Math/MathML"><semantics><mrow><mi>H</mi><mi>O</mi><mi>M</mi><mi>E</mi><mi mathvariant="normal">/</mi><mi mathvariant="normal">.</mi></mrow><annotation encoding="application/x-tex">HOME/.</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="base"><span class="strut" style="height:1em;vertical-align:-0.25em;"></span><span class="mord mathnormal" style="margin-right:0.08125em;">H</span><span class="mord mathnormal" style="margin-right:0.05764em;">OME</span><span class="mord">/.</span></span></span></span>(basename $SHELL)rc

mkdir -p $HOME/devl cd $_ git clone https://github.com/eranif/codelite.git cd codelite git submodule update --init --recursive mkdir build-release cd $_ cmake .. -DCMAKE_BUILD_TYPE=Release -DWITH_MYSQL=1 -DWITH_POSTGRES=1 make -j$(sysctl -n hw.physicalcpu) install

You should now have an app bundle $HOME/devl/codelite/build-release/codelite.app

To launch CodeLite: