Open waebbl opened 1 year ago
This IlmBase vs Imath also causes build problems on FreeBSD and dependencies such as BambuStudio (see https://github.com/bambulab/BambuStudio/issues/2606).
Please update dependency on OpenEXR to 3.X (3.2.1 is out already!) and Imath in place of OpenEXR 2.X and IlmBase :-)
Here is the FreeBSD port of OpenVDB that patches cmake in order to work with modern OpenEXR 3.X + Imath: https://cgit.freebsd.org/ports/tree/misc/openvdb.
Here goest the example IlmBase -> Imath fix that comes from the FreeBSD Ports: https://github.com/AcademySoftwareFoundation/openvdb/pull/1678.
This further requires update of OpenVDB upstream to use OpenEXR 3.x + Imath.
Environment
Operating System: Gentoo 2.9 Version / Commit SHA: VDB 10.0.1 CMake Version: 3.25.1 Compiler: gcc 11
Describe the problem
Trying to build the vdb_tool binary fails in cmake configuration, because it uses OpenEXR-2 library OpenEXR:IlmImf. Replacing the link line and using OpenEXR:OpenEXR as the link library for OpenEXR-3 let the tool be built. The error is:
To Reproduce
Steps to reproduce the behavior:
Additional context
I removed the command line options for our toolchain file and initial cache from the above command for better readability. They don't have an influence on the outcome.