Running OpenFrameworks on Ubuntu 16.04

Standard

Introduction

OpenFrameworks (OF) is a powerful application programming framework portable across different popular operating systems.

Download and compile OF


# git openframeworks and submodules
git clone --recursively https://github.com/openframeworks/openFrameworks

# Load required libraries
cd OF/scripts/linux; ./download_libs.sh

# Install dependencies
cd OF/scripts/linux/ubuntu
sudo ./install_dependencies.sh

# Compile OF
cd OF/scripts/linux
./compileOF.sh -j3

# Compile Project Generator
cd OF/scripts/linux
./compilePG.sh

Build OF examples

OF comes with many examples. To build them all, simply


cd OF/scripts/linux
./buildAllExamples.sh

Note: you may encounter error as I have, related to “undefined reference to `ofAppEGLWindow::Settings::Settings()'”, which I haven’t found a solution yet.
Instead doing a massive build, you may want to try build each individually:


cd OF/examples/graphics/polygonExample
make
cd bin
./polygonExample

Working with QtCreator
To prepare OF to work with QtCreator, do the following:


cd OF/scripts/qtcreator
./install_template.sh

Now you can create new OF projects under QtCreator, as described by the video at the bottom of this tutorial.

Leave a Reply