[Interest] iOS libpng conflicts with another lib

Konstantin Tokarev annulen at yandex.ru
Tue Feb 6 20:36:30 CET 2018



06.02.2018, 13:28, "maitai" <maitai at virtual-winds.org>:
> Hello,
>
> I have an external lib build statically into my qt app (5.9.4,
> widget-based). That lib can optionally support internally png images. If
> I activate this, there is no problems in other platforms (I tested
> Android, Windows, Linux, Raspberry, MacOS), but on iOS as soon as I try
> to open a png image with a QPixmap or a QImage it crashes. If I compile
> my external lib without png support no more crash.
>
> So it appears that libpng from Qt and the one from my lib are
> conflicting, but only on iOS.
>
> Any idea why this occurs on iOS and what I could do to avoid the crash?
> I badly need png support in both qt and the external lib.

Also, make sure that when you build your lib it uses headers from the same
copy of libpng that it links to. (At least with cmake it's quite easy to get into
such situation)

>
> Thanks
> Philippe
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

-- 
Regards,
Konstantin




More information about the Interest mailing list