Thanks for the kind explanation. I was able to change the install directory for the lens database. But even though I used the -DLENSFUNDBDIR=share/lensfun switch when I ran cmake, lensfun simply insisted looking for the database in the directory where it was originally installed.
I wanted to run RT in verbose mode, but I don’t know what exactly to do (could you please explain to me?). What makes the story even funnier is that I’m not to run RT in the console of MinGW. It simply quit, without a single piece of error message. To extract a little more information, I used GDB to run rawtherapee.exe. It turns out that RT exited with code 0xc0000139. Do you happen to know what that code means?
I created an automatic minimum profile with auto lens distortion correction, but the value applied was the one of one of the lens when creating the profile.
With lensfun, I hope most of the profile created will automatch to correct distortion, right?
(except with manual lenses, althoughtin the Raw their is the info of the focal lenght I give the camera…)
Thank you @noteasy2beme, @gaaned92, @agriggio, I usually delete the options file and cache for new versions, didn’t this time. It works now as expected.
Reviving this thread, now, July 2020, as I’ve recently made my first build on a win10 x64 laptop.
I’ve followed rawpedia instructions until the “Run CMake and Make” section.
But I can’t seem to find anything related to lensfun database; when I run RT-5.8 (dev branch), I can’t select any lens - and the share directory is empty.
~/RT/RawTherapee/build/release
$ ll
total 22624
drwxr-xr-x 1 catya None 0 16 juil. 16:34 .
drwxr-xr-x 1 catya None 0 10 mai 00:22 ..
-rw-r--r-- 1 catya None 733 10 mai 00:01 AboutThisBuild.txt
-rw-r--r-- 1 catya None 1236 9 mai 23:56 AUTHORS.txt
-rw-r--r-- 1 catya None 159083 9 mai 23:56 camconst.json
drwxr-xr-x 1 catya None 0 10 mai 00:22 dcpprofiles
drwxr-xr-x 1 catya None 0 10 mai 00:22 fonts
drwxr-xr-x 1 catya None 0 10 mai 00:22 iccprofiles
drwxr-xr-x 1 catya None 0 10 mai 00:22 images
drwxr-xr-x 1 catya None 0 10 mai 00:22 languages
-rw-r--r-- 1 catya None 33326 9 mai 23:56 LICENSE.txt
drwxr-xr-x 1 catya None 0 10 mai 00:22 licenses
-rw-r--r-- 1 catya None 2086 9 mai 23:56 options
drwxr-xr-x 1 catya None 0 10 mai 00:22 profiles
-rwxr-xr-x 1 catya None 15083188 10 mai 00:22 rawtherapee.exe
-rwxr-xr-x 1 catya None 7597536 10 mai 00:22 rawtherapee-cli.exe
-rw-r--r-- 1 catya None 4666 9 mai 23:56 RELEASE_NOTES.txt
drwxr-xr-x 1 catya None 0 10 mai 00:22 share
drwxr-xr-x 1 catya None 0 10 mai 00:22 sounds
drwxr-xr-x 1 catya None 0 10 mai 00:22 themes
-rw-r--r-- 1 catya None 11332 10 mai 00:01 WindowsInnoSetup.iss
If you run lensfun-update-data from your console you see where the lensfun directory is located. For me this is at C:/msys64/mingw64/var/lib/lensfun-updates/version_1
You need to make sure that the DBDirectory setting in your C:\Users\###\AppData\Local\RawTherapee5-dev\options file points to this folder.
It was executed from within the newly created build subdirectory, as stated in the current revision of rawpedia.
@Thanatomanic,
the DBDirectory attribute does not even exist in my options file.
Have I missed part of the process?
note that I basically stopped right after RT was built and made executable through MSys (again, just as in RawPedia)
Also note that I’ve cloned this “locally”, under the /home directory created by MSys
@Thanatomanic
I think @nonophuran question is due to lack of clarity of the redaction of the steps following make install .
There are two ways to run the built application:
run the exe from a MNGW64 shell (like in LINUX). In this case, all dependencies can be fetched in MSYS2/MINGW64.
To get access to the lensfun DB, the CMAKE tag DLENSFUNDBDIR should point to C:/msys64/mingw64/var/lib/lensfun-updates/version_1 or otherwise, you have to modify the DBDirectory parameter accordingly.
Copy ALL dependencies as described in rawpedia/windows including the Lensfun DB in the correct locations. In this case you can run as a native windows app (double-click, from a BAT…)
Can you clarify and verify that in Rawpedia? Perhaps reordering some paragraphs also.