Skip to content

Cinder for Linux | Fedora 23 24 on x86_64

Petros Kataras edited this page Feb 19, 2017 · 2 revisions

Requirements

CMake

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 Fedora 23:

sudo dnf 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).

Enable rpmfusion

su -c 'dnf install http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm'

Compiler

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 Fedora 23 - x86_64, Cinder can use the version of Clang (v3.6.X) that ships with Fedora. Install it using dnf:

sudo dnf install clang

You can also download the binaries for Clang from here. For x86_64, download Clang for Fedora23 x86_64 Linux. Any version from 3.6.0 on should work.

GCC 4.9 or GCC 5.X

*Fedora 23 ships with GCC 5.3, which is supported by Cinder, although for using some third party libraries installed on Fedora you might need to change the "-D_GLIBCXX_USE_CXX11_ABI=0" define in the CMake files to support GCC 5's new C++ ABI.

Library Dependencies

sudo dnf install \
        mesa-libGL-devel \
        mesa-libGLU-devel \
        zlib-devel \
        libcurl-devel \
        pulseaudio-libs-devel \
        libmpg123-devel \
        libsndfile-devel \
        libXcursor-devel \
        libXrandr-devel \
        libXinerama-devel \
        libXi-devel \
        gstreamer1-devel \
        gstreamer1-plugins-base-devel \
        gstreamer1-plugins-bad-free-devel \
        fontconfig-devel

Building Cinder

Pre-build checklist:

  • Boost submodule for Cinder is installed.
  • Library dependencies are installed.
  • CMake 3.0 (or later) is installed and cmake is accessible from the command line.

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