Skip to content

compiling_MacOS

Bruno Levy edited this page Sep 11, 2022 · 5 revisions

Graphite compilation on MacOS

Prerequisites

  • CMake
  • C++ compiler (clang)

Quick compilation guide

$ git clone --recurse-submodules https://github.com/BrunoLevy/GraphiteThree.git
$ cd GraphiteThree
$ ./configure.sh
$ cd Build/Darwin-clang-dynamic-Release
$ make -j 8

Graphite is generated in the bin/ subdirectory.

Compiling plugins

Create the file GraphiteThree/plugins/OGF/Plugins.txt (you can copy GraphiteThree/plugins/OGF/Plugins.txt.sample) and for each plugin you want to compile, add a line with:

add_subdirectory(PluginName)

where PluginName is one of WarpDrive (optimal transport), RayTracing (to display transparent surfaces) or gompy (Python interoperability for Graphite).

Then reconfigure and rebuild Graphite.

Getting the latest version of submodules

   git submodule update --recursive --remote
Clone this wiki locally