Lensfun 0.3.2 on Ubuntu Xenial 16.04

After Thorsten Bronger processed a calibration upload of mine (thanks a lot!), I needed to update lensfun on my Ubuntu 16.04 from 0.2.8 to 0.3.2. It looks like there is no PPA providing this version, so I installed it by myself. But there is a nasty trick I had to do which I would like to share. Maybe someone knows a clean way 😉

All commands are run as root (so execute „sudo bash“ before in terminal).

  1. install build dependencies

    aptget builddep liblensfun0

  2. remove installed lensfun version (keep all dependent packages)

    dpkg -r –force-all liblensfun0 liblensfun-data

  3. Download lensfun and extract
  4. in terminal, create a sub-directory inside the extrated lensfun folder and change into it

    mkdir cmake_build
    cd cmake_build

  5. prepare cmake


  6. compile and make package

    make package

  7. install created deb package

    dpkg -i <generated package name>.deb

  8. retrieve lens updates by running


Now, the package is installed and has the new lens data. But darktable did not actually recognize it – the lens correction module was simply missing. I spent a couple of hours, different other installation ways (e.g. using checkinstall to create the deb package) but it simply didn’t work out. I ended in using a „hack“. Liblensfun.so.0.3.2 is installed in /usr/lib/x86_64-linux-gnu. It looks like darktable expects to have the lensfun lib simply in /usr/lib. So I created a symlink:

cd /usr/lib
ln -s x86_64-linux-gnu/liblensfun.so.0.3.2 liblensfun.so.0

(if you have the original lensfun package still installed, just move the existing symlink to something like liblensfun.so.0.orig)

This way, darktable uses the new lensfun lib and has my lens listed. If anyone knows what to change or what I have done wrong, I would highly appreciate any comments 🙂


Quelle: Piraten-Planet

Datum: Dienstag, 16. August 2016 21:43

Tags »