Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Cinder for Linux | Ubuntu 15.X on x86_64
Cinder for Linux requires CMake 3.0 or later. You can use the binary package or do a build from the source. Make sure
cmake is in
$PATH and accessible from the command line.
If you want to use the version of CMake that ships with Ubuntu 15.X:
sudo apt-get install cmake
If you want to use a later version, you can find the downloads for CMake here.
If you need to build CMake, see [Building CMake](Building CMake).
You can use either Clang or GCC to build Cinder as well as Cinder based applications. Clang compiles faster and uses less memory than GCC.
Clang 3.6.0 and later
On Ubuntu 15.X - x86_64, Cinder can use the version of Clang (v3.6.X) that ships with Ubuntu. Install it using
sudo apt-get install clang
You can also download the binaries for Clang from here. For
x86_64, download Clang for x86_64 Ubuntu 14.04. Any version from 3.6.0 on should work.
GCC 4.9 or GCC 5.X
Ubuntu 15.04 ships with GCC 4.9 while Ubuntu 15.10 ships with GCC 5.2. Both are supported by Cinder.
sudo apt-get install \ libxcursor-dev \ libxrandr-dev \ libxinerama-dev \ libxi-dev \ libgl1-mesa-dev \ libglu1-mesa-dev \ zlib1g-dev \ libfontconfig1-dev \ libmpg123-dev \ libsndfile1 \ libsndfile1-dev \ libpulse-dev \ libasound2-dev \ libcurl4-gnutls-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
- Library dependencies are installed.
- CMake 3.0 (or later) is installed and
cmakeis accessible from the command line.
Fetching and Building Cinder
git clone --recursive -b master https://github.com/cinder/Cinder.git cd Cinder && mkdir build && cd build && cmake .. && make -j4
Building and Running BasicApp
cd Cinder/samples/BasicApp/proj/cmake && mkdir build && cd build && cmake .. && make && ./Debug/BasicApp