Navigation C API Pages Python bindings Applications

Dependencies

Base dependencies

Optional Image loaders

Optional Text rendering

Optional Backends

  • X11

  • AA-lib

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

  • XCB (90% of code finished at this point)

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
Install image devel libraries
zypper in libjpeg-devel libpng-devel giflib-devel libtiff-devel
Install FreeType devel library
zypper in freetype-devel fontconfig-devel
Install X11 devel library
zypper in libX11-devel libXext-devel
Install XCB devel library
zypper in xcb-util-keysyms-devel
Install swig
zypper in swig python-devel
All in the one for the lazy
zypper in gcc make libjpeg-devel libpng-devel giflib-devel libtiff-devel
          freetype-devel fontconfig-devel libX11-devel libXext-devel
          xcb-util-keysyms-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 pkg-config
Install image devel libraries
apt-get install libjpeg-dev libpng-dev libgif-dev libtiff-dev libwebp-dev
Install FreeType devel library
apt-get install libfreetype6-dev libfontconfig-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 pkg-config libjpeg-dev libpng-dev libgif-dev
                libtiff-dev libwebp-dev libfreetype6-dev libfontconfig-dev
                libx11-dev libxext-dev swig python-dev

Deb packages can be build from the GFXprim source (after installing necessary devel packages) by:

Building debian packages
apt-get install devscripts
cd gfxprim
debuild -i -us -uc