Skip to content

Build Guide

Liam edited this page Jan 28, 2023 · 5 revisions

Unix systems

Installing dependencies

Both SFML and CMake are typically available in your distribuitions package manager. If they aren't, you probably know enough to not need this guide. For example, on Ubuntu:

apt-get install cmake libsfml-dev

Installing Pottchi

Decide which directory you want to install to, and navigate there. In the command line, run the following:

git clone https://github.com/Empoliam/Pottchi
cd Pottchi
mkdir build
cd build
cmake ../
make

Forced headless

If your machine doesn't have a display, you can prevent initialization of SFML by running cmake with the argument -DCMAKE_SSH_HEADLESS=ON. This will compile without any of the sections that make use of SFML. This will also disable the image output, but if you still want this you can enable uncompressed PNG output with the cmake argument -DCMAKE_TINY_OUT=ON.

Clone this wiki locally