Therefore I went ahead and performed a somewhat cumbersome copy & paste of a the data displayed for an xml file that did contain information for my camera and lens. The new xml file was then used to replace the similarly named xml file in the lensfun folder. However, when RT 5.8 was next started the camera and lens was still missing.
Now what? It would seem that there ought to be a way to download either the xml file or the file (?zip) that contains the most up to date version of the entire DB.
I have a somewhat similar situation. I build and install both RT and ART from source code. I have lensfun 0.3.95-6 installed. I added manually entries for Nikon Z6 and Nikkor Z 24-70 f/4 S. ART can automatically recognize both body and lens, while RT shows only Z6, but not the lens. There must be some differences how RT and ART handle lensfun API.
Peter, that was very helpful with respect to downloading. I was able to do the downloads using both methods.
However, when I substitute what I think is the applicable xml (obtained via first suggestion), in this case named mil-canon.xml, there seems to be no change in what I’m able to select in RT. In that, my new camera is NOT listed even though there is an entry for it in the xml file.
Then, using the zip file I extract the db folder (which seems to have the same files that appear in the folder named lensfun under RT) into the folder named share where the lensfun folder is located. After that I rename the original lensfun folder to a different name and rename the folder named db to lensfun. After that I start RT but when I go to “Manual Selected” under “Profiled Lens Correction” I’m unable to display anything under either “Cameras” or “Lens”.
Yes, the original one that was installed with my RT 5.8 and that is missing the camera & lens says Version=1. The new ones I downloaded that do contain the camera & lens say Version=2.
Glenn, I do run RT from a portable drive. It gets started by using a script that I’ve written that intends to set normal Windows environment variables to also reference the portable drive. I’ve never set the variable named ALLUSERSPROFILE but I could.
While that is interesting I’m afraid it doesn’t completely explain the behavior I’m seeing. Using original lensfun folder finds lots of cameras and lenses just NOT some that have been added to the mil-canon.xml file. While the complete new set of xml files extracted from .zip file finds nothing.
Something else I’ve now noticed is that the folder I downloaded as .zip file (i.e., contains what looks like all of the files in the lensfun folder) contains a pair of files named “lensfun-database.dtd” and “lensfun-database.xds” that are NOT present in original lensfun folder.
use my Windows lensfun_updatedb to update that specific location. You can get the .zip file containing the dbupdate.exe file here: https://github.com/butcherg/lensfun_dbupdate/releases, put the dbupdate.exe in a directory pointed to by your PATH variable, or in the directory containing the lensfun database director, then open a shell cd to that directory, and run dbupdate 1|2, pick 1 or 2 corresponding to the version number of the lensfun database RawTherapee is using. That’ll check the installed version and if it’s behind (or non-existent), it’ll download the current database from the recommended URL and unpack it to a version_x directory, x being either 1 or 2, depending on the version you specified.
You can change the database to include your data, but if you do this, don’t run dbupdate again or it’ll write the update right over your change. The lensfun docs apparently are not clear on where user mods can be placed in Windows, but what they do tell you in the most recent documentation might give you some clues.
Anyway, use the RT options to point to the directory you want to use, rather than let lensfun determine it for you…
Haven’t yet been able to work through all of what you mentioned there. However, it does look to me like my problem has something to do with Version 1 verses 2. Consider the following:
First, I haven’t checked them all but a sample indicates that the xml files that I started with are all Version=1. Then when I replaced the single file named mil-canon.xml the replacement was Version=2 and the Cameras & lenses defined in it did not appear.
Second, when I substituted all of the files in the .zip download they all appear to be Version=2 and none of them are found/used.
This implies that something other than just the files needs to change in order to use Version=2 xml files and that however that is setup now is incapable of using Version=2 xml files.
I’ll get to your suggestions about the options file tomorrow.
Yes that one works and contains my camera and lens.
While this might solve the current problem, it looks to me like this means that RT 5.8 (stable version) simply does NOT support the Lensfun Version 2 xml files. I’m certainly hoping that the next release of RT supports Lensfun Version 2 files.
Version 2 xml files are for lensfun 0.3.9.5, a beta release that too many have mistaken for a stable release. Version 1 XML files are for 0.3.2, the latest stable release, although it is quite old.
In recent rawproc releases, I’ve packaged the lensfun library compiled from the most recent master commit. It reports itself as 0.3.95, and I haven’t run into any bugs. Last code commit was 21 Nov 2021, but the frequency of commits over the past two years has been slow. However, its working pretty well, IMHO.
It’s been about a month since the last commit to the data, but that could just be holiday recovery…
Yes, 0.3.2 version is stable, while 0.3.9.5 is beta. But because lensfun development basically stalled some programs (like darktable and ART) use 0.3.9.5 API to access the lens database. Unfortunately it seems that RT is doing something else and recent bodies/lenses are not recognized automatically.