Skip to content

Instantly share code, notes, and snippets.

@yuanweixin
Created May 20, 2023 23:33
Show Gist options
  • Save yuanweixin/380f6507aaa4bfa74a05563511e3c6fc to your computer and use it in GitHub Desktop.
Save yuanweixin/380f6507aaa4bfa74a05563511e3c6fc to your computer and use it in GitHub Desktop.
building darktable

The ubuntu snap version doesn't have the latest lensfun data files. For reasons, it seems to have hard coded the lensfun data files, and also for reasons, the snap seems to be mounted as read-only file system, so you can't just copy the lensfun files there.

lensfun needs to be updated using lensfun-update-data. If you type it in cli it would suggest what pkg to install to get it on ubuntu.

trying to compile darktable myself. checking out the source turns out to take forever.

deb

sed -e '/^#\sdeb-src /s/^# *//;t;d' "/etc/apt/sources.list" \
  | sudo tee /etc/apt/sources.list.d/darktable-sources-tmp.list > /dev/null \
  && (
    sudo apt-get update
    sudo apt-get build-dep darktable
  )
sudo rm /etc/apt/sources.list.d/darktable-sources-tmp.list

git

git clone --recurse-submodules --shallow-submodules -- --depth 1 https://github.com/darktable-org/darktable.git
cd darktable
git fetch --tags
git checkout tags/release-4.2.1

build

./build.sh --prefix /opt/darktable-test --build-type Release 

install (above cmd would tell you what to do once it's done), note the sudo -E, you need that to make jsonschema python pkg visible

sudo -E cmake --build "/home/wei/darktable/darktable/build" --target install -- -j16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment