Navigation C API Pages Python bindings Applications

Dependencies

Base dependencies

  • C compiler (tested with gcc or clang)

  • GNU make

  • Python (2.6 or newer)

  • Jinja2

Optional Image loaders

  • libjpeg

  • libpng

  • giflib

  • libtiff

  • openjpeg >= 2.0.0

  • zlib (usually installed as libpng dependency)

Optinal Text rendering

  • FreeType

Optional Backends

  • X11

  • AA-lib

  • SDL-1.2 (not recomended, known to be slow and buggy)

Python Bindings

  • Swig

  • Python (devel library)

Compilation

Once devel packages are installed the compilation is as simple as running configure and make.

Note The configure script is written in Python.
Compilation
gfxprim # ./configure
...

gfxprim # make
Tip GFXprim supports proper parallel build, you most likely want to add the -j with number of your processors + 1 as a parameter to the make.
Installation
gfxprim # make install

The make install command will install GFXprim libraries and devel headers into your system.

OpenSUSE & Fedora

Instruction to install required packages on OpenSUSE.

Works for Fedora too if you substitute zypper in with yum install.

Install basic tools
zypper in gcc make python-jinja2
Install image devel libraries
zypper in libjpeg-devel libpng-devel giflib-devel libtiff-devel
Install FreeType devel library
zypper in freetype-devel
Install X11 devel library
zypper in libX11-devel libXext-devel
Install swig
zypper in swig python-devel
All in the one for the lazy
zypper in gcc make python-Jinja2 libjpeg-devel libpng-devel giflib-devel
          libtiff-devel freetype-devel libX11-devel libXext-devel swig
          python-devel

Debian

Instruction to install required packages on Debian and other Debian based distributions.

Install basic tools
apt-get install gcc make python-jinja2
Install image devel libraries
apt-get install libjpeg-dev libpng-dev libgif-dev libtiff-dev
Install FreeType devel library
apt-get install libfreetype6-dev
Install X11 devel library
apt-get install libx11-dev libxext-dev
Install swig
apt-get install swig python-dev
All in the one for the lazy
apt-get install gcc make python-jinja2 libjpeg-dev libpng-dev libgif-dev
                libtiff-dev libfreetype6-dev libx11-dev libxext-dev swig
                python-dev