# Libpng incompatibilities

**URL:** <https://forum.juce.com/t/libpng-incompatibilities/10362>\
**Category:** Linux\
**Created:** [April 28, 2013, 7:43am UTC](https://forum.juce.com/t/libpng-incompatibilities/10362 "2013-04-28T07:43:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![falkTX](https://avatars.discourse-cdn.com/v4/letter/f/9f8e36/32.png) [@falkTX](https://forum.juce.com/u/falkTX)\
**Post date:** [April 28, 2013, 7:43am UTC](https://forum.juce.com/t/libpng-incompatibilities/10362/1 "2013-04-28T07:43:00Z")

</div>

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:

```auto

```

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…

---

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://forum.juce.com/u/jules)\
**Post date:** [April 28, 2013, 7:52am UTC](https://forum.juce.com/t/libpng-incompatibilities/10362/2 "2013-04-28T07:52:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![falkTX](https://avatars.discourse-cdn.com/v4/letter/f/9f8e36/32.png) [@falkTX](https://forum.juce.com/u/falkTX)\
**Post date:** [April 28, 2013, 8:11am UTC](https://forum.juce.com/t/libpng-incompatibilities/10362/3 "2013-04-28T08:11:40Z")

</div>

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)
