gfxprim # ./configure ... gfxprim # make
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)
Once devel packages are installed the compilation is as simple as running configure and make.
|
|
The configure script is written in Python. |
gfxprim # ./configure ... gfxprim # make
|
|
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. |
gfxprim # make install
The make install command will install GFXprim libraries and devel headers into your system.
Instruction to install required packages on OpenSUSE.
Works for Fedora too if you substitute zypper in with yum install.
zypper in gcc make python-jinja2
zypper in libjpeg-devel libpng-devel giflib-devel libtiff-devel
zypper in freetype-devel
zypper in libX11-devel libXext-devel
zypper in swig python-devel
zypper in gcc make python-Jinja2 libjpeg-devel libpng-devel giflib-devel
libtiff-devel freetype-devel libX11-devel libXext-devel swig
python-devel
Instruction to install required packages on Debian and other Debian based distributions.
apt-get install gcc make python-jinja2
apt-get install libjpeg-dev libpng-dev libgif-dev libtiff-dev
apt-get install libfreetype6-dev
apt-get install libx11-dev libxext-dev
apt-get install swig python-dev
apt-get install gcc make python-jinja2 libjpeg-dev libpng-dev libgif-dev
libtiff-dev libfreetype6-dev libx11-dev libxext-dev swig
python-dev