Skip to content

compiling_Linux

Bruno edited this page Aug 22, 2024 · 7 revisions

Graphite compilation on Linux

Prerequisites

  • CMake
  • g++ compiler
  • X11 development libraries

On a Debian system, dependancies can be installed as follows:

$ sudo apt-get install cmake build-essential libx11-dev libxcb1-dev libxau-dev libxdmcp-dev libxrandr-dev

Quick compilation guide

$ git clone --recurse-submodules https://github.com/BrunoLevy/GraphiteThree.git
$ cd GraphiteThree
$ ./configure.sh
$ cd build/Linux64-gcc-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