Photography

Gimp Lensfun plugin on Windows 7 64bit

I managed to get the plugin to work on Windows 7 64 bit with Gimp 2.6.12 32 bit …

Apparently, the Windows build (0.2.3) crashes Gimp 2.8.6 (64bit) as well as 2.6.12 (32bit) – you get an error when Gimp tries to initialize the plugin at startup, you dismiss it, and the plugin doesn’t appear in the menu.

The steps were like this:
a) on Gimp 2.8.6 startup you get an error message “the application was unable to start correctly 0xc000007b”
b) assuming that there might be some incompatibilities between the 32bit plugin and 64bit Gimp, I have downgraded to 2.6.12 ..
c) Gimp 2.6.12 crashes also, but you get a better error message saying that libstdc++-6.dll is required

Now is where the fun begun 🙂 I’ve tried few libstc++-6.dll from mingw and whatever I was able to find on the internet by adding it to the \bin folder of Gimp directly. Then the error message switched to :

the procedure entry point __gxx_personality_sj0 could not be located ……

After giving up on compiling everything for Windows (lensfun, and the miriad of dependencies that are required), I proceeded to check further …

Apparently, gimp-lensfun 0.2.3 is compiled with sjlj exception model … and the standard mingw (which I used as a source for the .dll) was compiled with something else.

The details I found here: http://stackoverflow.com/questions/17410718/the-procedure-entry-point-gxx-personality-v0-could-not-be-located-in-the-dynami

Then I managed to find a mingw build compiled with sjlj here:

http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.8.0/32-bit/threads-win32/sjlj/x32-4.8.0-release-win32-sjlj-rev2.7z/download

I then extracted the libstdc++-6.dll to the “c:\Program Files (x86)\GIMP-2.0\bin\” folder, then the error message changed, it needed a different .dll -> libgcc_s_sjlj-1.dll . I put that too, and BINGO it works 🙂

PS:

By now I was sufficiently familiar with lensfun that I decided to update the .xml that holds the Canon SLR lens, since the gimp lensfun plugin did not support my lens (Canon EF-S 18-135). However, I don’t like the results, I am using the Canon EF 28-135 and pictures look better.

I did not try the same steps again for 2.8.6 of Gimp. Mainly because I don’t use it, the GUI still needs some rework for Windows 7 and it doesn’t look as simple, so I would stick with 2.6 for a while …

6 Comments

  1. K

    Well Done!

  2. Francois_C

    I googled this page because of the same error after compiling my own 64-bit Windows version of the plug-in.
    Thank you. Bingo, too. But at first sight, only in the Gimp main plug-in directory. I had to replace the previously existing libstdc++6.dll, with no noticeable damage.
    The .dll mess, due to the use of several compilation toolchains, is an issue in Gimp Windows.

  3. Francois_C

    …Works also with version 0.2.4 of Lensfun.

  4. Ben

    Mine’s asking for libexiv-12.dll after copying the two files mentioned. 🙁

  5. Ben

    I found installing Gimp 2.8 helped my previous problem. But now running the extension from the menu just crashes.

  6. Ben

    Made sure the plugin is in the 32 folder… seems to work now

Leave a Reply