Skip to content

Conversation

@larshg
Copy link
Contributor

@larshg larshg commented Jan 26, 2026

External zlib has been default and is the preferred usage.

Using system installed zlib.
…causes a out-of-vector bound if its cleared.

Example works afterwards.
@larshg larshg force-pushed the removezlibusedinsurfacenurbs branch from 75bc47f to a45d48c Compare January 26, 2026 14:12
Copy link
Member

@mvieth mvieth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would keep the HAVE_ZLIB preprocessor-define and the WITH_SYSTEM_ZLIB option, and either warn or error-out if WITH_SYSTEM_ZLIB is FALSE. That's a smoother transition for people who use one or the other. And zlib.cmake can probably be removed now?

Keep HAVE_ZLIB - added config include to opennurbs_zlib.cpp.
Correctly check for ZLIB for libpng_wrapper as it includes <zlib.h>
@larshg
Copy link
Contributor Author

larshg commented Jan 27, 2026

Have updated accordingly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants