Skip to content

Cinder for Linux | Ubuntu 15.04 on ODROID XU4

chaoticbob edited this page Dec 7, 2015 · 4 revisions

Requirements

CMake

Cinder for Linux requires CMake 3.1 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.

You can find the downloads for CMake here.

If you need to build CMake, see [Building CMake](Building CMake).

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.2 and later

You can download the binaries for Clang from here. For the ODROID-XU4, download Clang for armv7a Linux.

GCC 4.9

NOTE: Cinder has not been tested using GCC 5.x

Library Dependencies

sudo apt-get install libxcursor-dev \
libxrandr-dev \
libxinerama-dev \
libxi-dev \
libgles2-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

Building Cinder

Pre-build checklist:

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

Building

Starting in the Cinder directory:

cd linux
./build -es3

Building and Running BasicApp

Building

Starting in the Cinder directory:

cd samples/BasicApp/linux
./build -es3

Running

Starting from samples/BasicApp/linux:

./Debug/es3/BasicApp