You are not logged in.

#1 2014-08-09 14:12:35

silverhammermba
Wiki Maintainer
Registered: 2011-04-14
Posts: 156

mingw-w64-sfml Has Incorrect mingw-w64-libjpeg-turbo DLL Dependence

I recently took ownership of mingw-w64-sfml, so I'm still figuring things out.

So just like the regular libjpeg-turbo package, mingw-w64-libjpeg-turbo is built with --with-jpeg8 so it produces libjpeg-8.dll. This is the library version without a backwards-compatible API. The problem is that the SFML DLL doesn't look for this version:

$ x86_64-w64-mingw32-objdump -x /usr/x86_64-w64-mingw32/bin/sfml-graphics-2.dll | grep 'libjpeg.*\.dll'
        DLL Name: libjpeg-62.dll

libjpeg-62.dll has the backwards-compatible API. SFML apps compile fine but don't run since they're missing that one DLL. They do run if I rename libjpeg-8.dll to libjpeg-62.dll. I think this indicates that SFML doesn't even need the backwards compatible API. So I'm not sure why it's getting the wrong one.

How do I fix this for the package?

Offline

Board footer

Powered by FluxBB