Building on Linux

This guide is for building on Ubuntu 5.04 and above. Other versions and distributions are not officially supported, however the build process should still theoretically work on them as well.

Tools

git

sudo apt-get install git

Prerequisites

Go to qt.io and install the latest version of the 64-bit open source version of Qt for Linux. Then run:

sudo apt-get install g++ libgl1-mesa-dev libgl-dev libglm-dev libjpeg-dev libpng12-dev libtbb-dev libxml2-dev ocl-icd-libopencl1 ocl-icd-opencl-dev opencl-headers libopenexr22 libopenexr-dev

Note that if you have an older system, and libopenexr22 is not available on it, you can use libopenexr6.

Install the OpenCL drivers and support libraries for your hardware.

AMD

For AMD get their drivers from their site, build and install a .deb package.

Nvidia

sudo apt-get install nvidia-352 nvidia-352-dev nvidia-libopencl1-352 nvidia-modprobe nvidia-opencl-dev nvidia-opencl-icd-352 nvidia-prime

If a version more recent than 352 is available at the time, then use that too. You can optionally check nvidia for the latest.

Obtaining Source

git clone https://mfeemster@bitbucket.org/mfeemster/fractorium.git

Building

Command line build

If you have both Qt 4 and 5 installed, select Qt 5 before compilation

export QT_SELECT=qt5

Build

cd fractorium
qmake main.pro -r -spec linux-g++-64 CONFIG+=release
make

Qt Creator build

Open main.pro in Qt Creator and build all.

Running

cd Bin/release
./fractorium

Install/Uninstall

sudo make install

or

sudo make uninstall

Packaging

You can also compile a .deb package to install locally. A few more tools will
be necessary:

sudo apt-get install bzr bzr-builddeb dh-make debhelper

Run package-linux.sh in the project root. It will create ~/PPA/fractorium-VERSION as a work folder and build a signed source package.

For local use you probably want an unsigned binary package:

./package-linux.sh --binary-only --unsigned