Tips for building with OpenColorIO? #4175
-
Howdy all, I'm trying to figure out how to include OpenColorIO when building OIIO on Windows. I'm able to build OIIO without OCIO just fine, and I can also build OCIO on its own. When I set -DOpenColorIO_ROOT=%OCIO_ROOT% for OIIO, CMake reports that OpenColorIO is found, which sounds good. However, when I go to do the final build in Visual Studio I get a ton of errors, mostly like:
Any tips to point me in the right direction? Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Here are a few more details about my build script. I'm building OpenColorIO third, after boost and zlib, using:
Then, build the rest of the stuff and end by configuring OIIO with:
That all works, but the final build in Visual Studio fails. Are there any mistakes in my process? Thanks! |
Beta Was this translation helpful? Give feedback.
-
That looks basically right. The error you're getting is the one in your first message above? This is sounding suspiciously like you either have multiple versions of OCIO or OpenEXR that are conflicting, or maybe that somehow OCIO was built with a different version of OpenEXR than OIIO used? Something of that flavor? Hey, what happens if you omit the |
Beta Was this translation helpful? Give feedback.
That looks basically right. The error you're getting is the one in your first message above?
That's not something OIIO uses directly.
This is sounding suspiciously like you either have multiple versions of OCIO or OpenEXR that are conflicting, or maybe that somehow OCIO was built with a different version of OpenEXR than OIIO used? Something of that flavor?
Hey, what happens if you omit the
-DBUILD_SHARED_LIBS=0 -DLINKSTATIC=1
when you configure OIIO?Do you have a requirement to have strictly static libraries?