Compiling OpenImageIO for Windows
Has anyone had success? I've tried off and on in the last year with no luck. It's easy on Mac, just brew install some libraries and compile, but on Windows it's a Cmake cluster with layers of dependencies to compile by hand. The instructions) have dead links and environment variables that don't work. The directory structure you're supposed to have isn't even clear. I'd love to use the project but it seems so inaccessible.
Posted Sep 27, 2018, 5:28 PM UTC
Yeah, use Vcpkg.
It automatically sorts out the dependencies for you and integrates the new library into Visual Studio's environment variables, so they're suddenly just as easy to use as the ol' STL.
If the library you want is in the list of maintained ports for Vcpkg, compiling it correctly is just a matter of entering this in a command prompt:
This will work for OpenEXR, OpenVDB, Alembic and a wide range of other essential libraries. You can even update the whole catalog with one command. It's life-changing.
Wow. That is life changing. I didn't know such a thing existed on Windows. Thanks for the tip, I'm going to be using a lot I think.