AcademySoftwareFoundation / openexr

The OpenEXR project provides the specification and reference implementation of the EXR file format, the professional-grade image storage format of the motion picture industry.
http://www.openexr.com/
BSD 3-Clause "New" or "Revised" License
1.62k stars 610 forks source link

Resolve zlib build problems #883

Closed meshula closed 3 years ago

meshula commented 3 years ago

Mac and Linux have got a system zlib, which generally OpenEXR uses. We have an embedded zlib, used on Windows, which causes issues.

From issue https://github.com/AcademySoftwareFoundation/openexr/issues/881:

Don't install by default -- this requires all dependencies to be export-able, so for instance if I statically compile ZLIB and IlmImf in my "superproject", then my ZLIB needs to be exportable to satisfy IlmImf's export statement...

We're not going to be making upstream changes to zlib, so we should revisit how the zlib dependency is managed versus user choice.

see also:

https://github.com/AcademySoftwareFoundation/openexr/issues/748 https://github.com/AcademySoftwareFoundation/openexr/issues/871 https://github.com/AcademySoftwareFoundation/openexr/issues/881

meshula commented 3 years ago

using internal zlib is an externally controllable variable, OPENEXR_FORCE_INTERNAL_ZLIB