I think encountered another issue. Itās more related to the lensfun I have on my computer, other than RT. Could you please give me a hand?
In order to obtain the newest database, I compiled lensfun in MSYS2. It turns out that the database is installed in c:\ProgramData\lensfun. After RT is compiled, it looks for the lensfun database at that place and only that place.
After I copied the locally compiled RT to another computer, it couldnāt find the database, even if I copied the database to c:\ProgramData\lensfun folder.
Do you know how to make lensfun install the database under mingw64\share\lensfun?
I found you gave a short description about make a local build of lensfun. Do you happen to know how to change the directory of the database of lensfun? It keeps installing the database into \ProgramData\lensfun. I want to let it install the database into the place where the MSYS package installs the database. Thanks!
I donāt know, you can argue for both alternatives. The solution I implemented was simply the cheapest code-wise (meaning that it had the smallest impact on the code), unless thereās a strong argument to change it, Iād say it stays that way.
In fact, if you want a āhard-codedā prefix defined at execution time, I think we can get rid of the options completely and simply fix the path in the executableā¦
@noteasy2beme Perhaps can you try
-DCMAKE_INSTALL_DATAROOTDIR=/what/you/want
@agriggio for me, it is ok as it is.
Only my opinion: the hard coding (as for LCP or DCP) is perhaps the best way to avoid future problems (mainly on windows). Should it be applicable also on Linux?
Presently, I cannot really say we can generate a portable version of rawtherapee as explained in Rawpedia. In fact, except the cache and option file, the config folder remains external to the RT directory.
Thus when you copy RT on a USB key and go on an other computer you miss the dynamicprofile.cfg, the profiles dir and batch dir. But nobody seems to worry about that, included me. @partha was able, I donāt know how, to generate a truly portable version of RT
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ā¦)