Building CodeLite on OSX


Step 0: Prerequisites

  • You should have cmake on your OSX ( I used Homebrew to install it )
  • Download wxWidgets - CodeLite requires version 3.0 and later
  • git client, again use Homebrew to install it
  • Install latest Xcode from Apple ( codelite requires a decent compiler, clang 5.1 and later )
  • Install the Command Line Tools (open Xcode -> Preferences -> Downloads and install the command line tools). This will place clang/clang++ in the default locations '/usr/bin'

Step 1: Build wxWidgets

Extract wxWidgets sources. Let's assume that you have extracted them to /Users/you/src/wx-src/ :

cd /Users/you/src/wx-src/
mkdir build-release
cd build-release
../configure --enable-shared --enable-monolithic --with-osx_cocoa CXX='clang++ -std=c++11 -stdlib=libc++' CC=clang --with-macosx-version-min=10.8 --disable-debug --disable-mediactrl
make -j4
sudo make install

Step 2: Build CodeLite

  • Git clone codelite sources:
cd /Users/you/src/
git clone https://github.com/eranif/codelite.git
  • Create the build folder, run cmake followed make:
cd /Users/you/src/codelite
mkdir build-release
cd build-release
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j4
make install
  • Launch the bundle (still inside the build-release folder):
open codelite.app/
Edit - History - Print - Recent Changes - Search
Page last modified on October 02, 2016, at 08:15 AM