Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
CMake-based openFrameworks for Linux, OS X and Windows.
C C++ CMake Objective-C Groff Objective-C++ Other
Branch: master

Sync

latest commit 4f691e2e99
@procedural procedural authored

README.md

CMake-based openFrameworks

Features

  • 64-bit, CMake, Ninja, Cotire, Clang and Sanitize ready.

  • Generate project file for your favorite IDE with CMake Generators.

  • Easily add openFrameworks addons with single ofxaddon command.

Difference

The only difference is that this project targets CMake build system and stores source code of some libraries on which openFrameworks depends locally with patches applied if needed.

See Architecture wiki page for details.

Step 1: Clone

Run git clone https://github.com/ofnode/of --depth 1 --no-single-branch in a terminal.

Run git submodule update --init --recursive to clone the examples.

Step 2: Prepare

Install required developer packages for your OS with:

Linux:

dev/install/linux distro script

OS X:

dev/install/osx/homebrew.sh

Windows:

See wiki

Step 3: Compile

Linux:

mkdir build-linux
cd build-linux
CC=clang CXX=clang++ cmake .. -G Ninja
ninja

OS X:

mkdir build-osx
cd build-osx
cmake .. -G Xcode -DCMAKE_BUILD_TYPE=Release
xcodebuild -configuration Release

Windows:

mkdir build-windows
cd build-windows
cmake .. -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++
ninja

Templates

ofApp

ofLiveApp

ofxAddon

Issues

Known issues on Linux

Known issues on OS X

Known issues on Windows

Licenses

See licenses folder. OF can be used for commercial applications without disclosing their source code. OF statically links to libraries which allow that for commercial use. OF does not use GPL-licensed libraries. FreeImage, FreeType and Cairo are dual licensed, thus OF uses FIPL, FTL and MPL respectively. GTK+ 3, GLib, ALSA, OpenAL Soft, mpg123, libsndfile, Gstreamer, udev and libusb are licensed under LGPL v2.1 or higher which allow dynamic linking to closed source applications and OF dynamically links to them.

Something went wrong with that request. Please try again.