Libgdk_pixbuf-2.0-0 Causing problems with linking for release

Hi,

I have been developing an application for Windows using gtkmm4 (using msys2 mingw64). I am preparing it for release. I learned that the easiest way to achieve this is copying all the required dlls to the same folder which the executable is in. And then using NSIS to auto-generate an installer. The problem I’m having is when I copy libgdk_pixbuf-2.0-0.dll to the folder, the app is not starting. Just to be clear, all other dlls working fine, but when I copy this particular dll I’m having this issue.

When I remove -mwindows compiler flag and rebuild, I see the following error message in the console:
DerivedApplication::on_activate() Unrecognized image file format

I was wondering what could be the cause. Any support appreciated.

EDIT: I solved the problem by adding loaders.cache and loader dlls of gdkpixbuf in the project folder as mentioned here c - Gtk+ icon missing when running in MS Windows - Stack Overflow

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.