Last active
September 5, 2019 14:29
-
-
Save abhijit86k/b48fa0207fb5bd40530b907d02f9be5c to your computer and use it in GitHub Desktop.
Install script for building latest Darktable on Ubuntu 18.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Notice and Usage information | |
echo "This script is provided only as a list of reference commands and is not intended to be executed as is." | |
echo " " | |
echo "Please open this script with a text editor, then read and execute the commands line by line as appropriate" | |
echo " " | |
echo "Exiting now" | |
exit | |
### Install Commands begin here | |
#Update all existing stuff | |
sudo apt-get update | |
sudo apt-get dist-upgrade | |
# Purge all existing darktable files and data | |
sudo apt-get purge darktable | |
sudo apt-get purge liblensfun* | |
sudo apt-get autoremove | |
# Clone the Source | |
git clone https://github.com/darktable-org/darktable | |
cd darktable | |
# Initialise the Submodules as per instructions in README | |
git submodule init | |
git submodule update | |
# Install Dependencies | |
# The general idea is to run the build command, i.e.: | |
# "./build.sh --prefix /opt/darktable --build-type Release" | |
# and see which packages/libraries are reported missing, and to install them. | |
# However, the build script reports only missing libraries, so it is a little | |
# tedious to figure out the actual names of the package in the Ubuntu repo. | |
# This file serves as an aid to help with that. | |
# Note that you may not need all the libraries and hence you should not run this file en mass. You might also need other packages NOT listed here so YMMV. | |
# sudo apt-get install: | |
# - build-essential | |
# - cmake | |
# - intltool | |
# - xsltproc | |
# - llvm | |
# - libglib2.0-dev | |
# - libgtk-3-dev | |
# - libgtk-3-0 | |
# - libgtk-3-bin | |
# - libpugixml-dev | |
# - libpugixml1v5 | |
# - libxml2 libxml2-dev | |
# - librsvg2-bin | |
# - ruby-rsvg2 | |
# - libsqlite3-0 | |
# - libsqlite3-dev | |
# - libgphoto2-dev | |
# - libgphoto2-6 | |
# - liblcms2-dev | |
# - libjson-glib-dev | |
# - libexiv2-dev | |
## NOTE: DO NOT INSTALL libjpeg- packages. It will conflict with other required stuff and cause a lot of broken stuff. | |
#Finally, once the build actually succeeds with no failures, install it using: | |
sudo -H cmake --build "/home/kabhijit/Source/darktable/build" --target install -- -j8 | |
#Test by running: | |
which darktable | |
#This should now point to something like /opt/darktable/bin/darktable | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment