Skip to content

Build instructions for Manjaro

Matt Maguire edited this page Sep 12, 2020 · 3 revisions

Table of contents

Manjaro Linux 20.1

  • Build status: PASSED on Darktable 3.3

In addition to the standard installation, the following packages have to be installed.

Minimal dependencies

sudo pacman -Syyu
sudo pacman -S base-devel cmake intltool sqlite pugixml exiv2 lcms2 librsvg

Optional dependencies

sudo pacman -S openexr libwebp graphicsmagick libcups libsoup libgphoto2 sdl mesa-libgl dbus-glib osm-gps-map 
sudo pacman -S lensfun curl libxslt llvm llvm-libs libavif colord-gtk gmic lua53 gmic 

Usermanual

If you wasnt to build the docs, some additional packages are requied. Note that some of them are not longer available under Manjaro, and so you need to install them from the AUR repsository. For this, you will need to install yay package manager (or equivalent)

sudo pacman -S jdk11-openjdk fop imagemagick extra/docbook-xml extra/docbook-xsl perl-pod-parser yay
yay -S gnome-doc-utils saxon6 saxon-he docbook-xsl-saxon
sudo pacman -S po4a   #if you want to build translated man pages

Additional saxon6 is required but the installation from AUR does not work and some manuala steps are required.

cd /usr/share/java
sudo ln -s /usr/share/java/saxon6/saxon.jar
sudo ln -s /usr/share/java/saxon6/saxon-xml-apis.jar
echo '#!/bin/sh' | sudo tee /usr/local/bin/saxon-xslt
echo '' | sudo tee -a /usr/local/bin/saxon-xslt
echo 'exec java -classpath /usr/share/java/saxon.jar com.icl.saxon.StyleSheet "@0"' | sudo tee -a /usr/local/bin/saxon-xslt
sudo chmod a+x /usr/local/bin/saxon-xslt

Build source and docs

Once the dependencies are installed, the source can be checked out:

git clone --recurse-submodules https://github.com/darktable-org/darktable.git ~/git/darktable
cd ~/git/darktable
./build.sh
./build-doc.sh    #if you want to build the docs
cd build
sudo make install