Libpng incompatibilities

Hi Jules,
I have an issue with some plugins that use png files, giving this error on the terminal when first loaded:

libpng warning: Application was compiled with png.h from libpng-1.6.1 libpng warning: Application is running with png.c from libpng-1.2.46 libpng error: Incompatible libpng version in application and library (repeated a few times) Floating point exception

I’m not exactly sure what’s going on, I have Juce using the internal/static libpng code - ie, the usual:

Could it be that some parts of Juce code are picking the system-wide libpng version instead of the local one?

I’ll investigate more…

Maybe you need to strip the exe to avoid it exporting any of its internal symbols?

stripping the symbols didnt help, but using “-fvisibility=hidden” did, thanks!

(this was only an issue in debug builds, where I didn’t had that^ option set)