I'm trying to import Adobe's lens profiles to lensfun (for use with darktable). I'm using darktable 2:2.6.2-1 on Arch Linux installed through pacman, which brought down lensfun 0.3.2-7. (I'm not using the darktable-git or lensfun-git packages). As such, the lensfun-convert-lcp script isn't in my install. I separately cloned lensfun from github, and running it against Adobe DNG converter's profiles successfully generates _lcps.xml. However, in the root node of this file, I see
I've run lensfun-update-data, and the database in /var/lib/lensfun-updates/version_1/*.xml files have
Looking at some attributes, the schemas are different. e.g. distortion has k1, k2, k3 in one and a, b, c in the other.
I was wondering how I could get these profiles to load under darktable.
So this is what I've tried so far:
- Uninstalled darktable and lensfun. Installed lensfun-git. Installed darktable. There's now no module for lens correction at all :( lensfun.get_database_version() is 2.
- Uninstalled darktable and lensfun. Installed lensfun-git and darktable-git. Uses lensfun db v2, and everything is picked up. Darktable UI looks a bit naff on 4k monitor. lensfun.get_database_version() is 2.
- Installing darktable and lensfun (neither git) makes things work, but the adobe converted lcps.xml stuff doesn't get picked up. lensfun.get_database_version() is 1.
Is there a way to get darktable (not darktable-git) to use lensfun-git? Or for lensfun to pick up v2 databases when lensfun.get_database_version() is returning 1?
In scenario 1 (lensfun-git + darktable non-git), launching darktable from the command line gives me:
[iop_load_module] failed to open operation `lens': liblensfun.so.1: cannot open shared object file: No such file or directory
I created a symlink for the missing file to liblensfun.so.2, and darktable picked up everything fine. Steps in the comment below.