Skip to content

ofnode/of

Repository files navigation

CMake openFrameworks 0.9.8

Build Status

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.

  • Easily cross-compile for Raspberry Pi from Ubuntu 16.04, see wiki for a detailed desccription and a step by step instruction.

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.

Step 1: Clone

Run git clone https://github.com/ofnode/of --depth 1 --no-single-branch to clone repo.

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:

TODO - Help needed, please send PR

Step 3: Compile

For Linux, OS X and Windows:

mkdir build
cd build
cmake .. -G Ninja
ninja

You easily cross-compile for Raspberry Pi following this guide.

Also, you can generate project files for IDEs, Xcode example:

cmake .. -G Xcode -DCMAKE_BUILD_TYPE=Release
xcodebuild -configuration Release

NOTE: Visual Studio is not supported anymore.

Known issues

OpenFrameworks' Poco lib is not compatible with OpenSSL 1.1, this should be fixed with next release of openFrameworks 0.10. In the meanwhile, you have to install openssl-1.0 and tweak the cmake generation step. On Archlinux it looks like :

sudo pacman -S openssl-1.0
cmake -DOPENSSL_INCLUDE_DIR=/usr/include/openssl-1.0 .

Templates

Examples

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

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.

Special thanks

In alphabetical order:

@aspeteRakete for creating OS X version and continuous support of the project!

@avilleret for creating Raspberry Pi 2 version!

@GuidoSchmidt for pull requests!

@procedural for original version.