OpenColorIO icon indicating copy to clipboard operation
OpenColorIO copied to clipboard

Version string calculation create octal numbers. Probably affected all external dependencies that use same cmake routine [minizip-ng]

Open ssh4net opened this issue 2 years ago • 2 comments

I guess minizip-ng support was added before minizip-ng become 3.0.8 and compilation had no issues. Now when MZ is 3.0.8 compiling give an error.

/* MZ_VERSION */
#define MZ_VERSION                      ("3.0.8")
#define MZ_VERSION_BUILD                (030008)

#if MZ_VERSION_BUILD >= 040000

Zero on start treat octal number and 8 is not the digit that can be in such numbers

ssh4net avatar Aug 10 '23 01:08 ssh4net

Thanks for logging the issue @ssh4net, I guess we have to stop relying on MZ_VERSION_BUILD if we want to fix that. Might be good to log an issue on minizip-ng directly, I found this https://github.com/zlib-ng/minizip-ng/issues/719 which would have been helpful but seem like it was rejected.

remia avatar Aug 30 '23 08:08 remia

And now we have:

#define MZ_VERSION                      ("3.0.10")
#define MZ_VERSION_BUILD                (03000a)

and:

/builddir/build/BUILD/OpenColorIO-2.3.2/src/OpenColorIO/OCIOZArchive.cpp:229:5: error: user-defined literal in preprocessor expression
  229 | #if MZ_VERSION_BUILD >= 040000
      |     ^~~~~~~~~~~~~~~~

Yeesh.

opoplawski avatar Feb 15 '24 03:02 opoplawski

OCIO 2.5 has been updated to require at least minizip-ng 4.0.0. See PR #2192.

doug-walker avatar Oct 01 '25 19:10 doug-walker