CMake openFrameworks 0.9.8
-
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.
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.
Run git clone https://github.com/ofnode/of --depth 1 --no-single-branch
to clone repo.
Install required developer packages for your OS with:
dev/install/linux
distro script
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.
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 .
Run git submodule update --init --recursive
from the repo folder to clone the examples.
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.
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.