Ubuntu Notes

Requirements

  • Ubuntu 22.04 or later
  • CMake 3.0+

CMake

To install CMake:

sudo apt install cmake

Clang

Cinder on Linux supports building both libcinder and Cinder applications with either GCC or Clang, which can be installed using:

sudo apt install clang

To set Clang as the default compiler, select /usr/bin/clang++ when prompted by this command:

sudo update-alternatives --config c++

Full Cinder Dependencies

sudo apt install libxcursor-dev libxrandr-dev libxinerama-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev \
zlib1g-dev libfontconfig1-dev libcurl4-gnutls-dev \
libmpg123-dev libsndfile1 libsndfile1-dev libpulse-dev libasound2-dev \
libgstreamer1.0-dev libgstreamer-plugins-bad1.0-dev libgstreamer-plugins-base1.0-dev gstreamer1.0-libav \
gstreamer1.0-alsa gstreamer1.0-pulseaudio gstreamer1.0-plugins-bad

Cairo

To work with the Cairo samples and CinderBlock, install the Cairo development packages:

sudo apt install libcairo2-dev