The following has been tested on Ubuntu 20-24.
Make sure the package lists are up-to-date:
sudo apt-get update
sudo apt-get upgrade
Install git and clone the repository:
sudo apt-get install git
git clone https://github.com/mfeemster/fractorium.git
Install the dependencies.
sudo apt-get install g++ libxcb-cursor0 libc6-dev libgl1-mesa-dev libgl-dev libglm-dev libjpeg-dev libpng-dev libpng16-16 libxml2-dev libqt6opengl6-dev qt6-base-dev qmake6 qtchooser ocl-icd-libopencl1 ocl-icd-opencl-dev opencl-headers libopenexr-dev libopenexr-3-1-30
Install the OpenCL drivers and opencl support for your hardware.
For AMD get their drivers from their site, build and install the .deb package.
For Nvidia, install their latest such as:
sudo apt-get install nvidia-modprobe nvidia-prime nvidia-535 nvidia-535-dev
Optionally you can install the Nvidia-specific nvidia-libopencl1-535 package,
but keep in mind that this will remove the generic ones (ocl-icd-opencl-dev
and ocl-icd-libopencl1).
If you have both Qt 5 and 6 installed, select Qt 6 before compilation:
export QT_SELECT=qt6
Compile the binaries, they will be created in the Bin/release folder.
cd fractorium
# Note that you may need to explicitly use /usr/lib/qt6/bin/qmake here because Qt sometimes has trouble finding itself.
qmake main.pro -r -spec linux-g++-64 CONFIG+="release native"
make
Or open main.pro in Qt Creator and build all.
sudo make install will install the files directly. sudo make uninstall is also available.