r/vfx•
Timmythetiny

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

210
561468168168165•

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:

vcpkg install openimageio:x64-windows
vcpkg integrate install

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.

3
TimmythetinyOP•

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.

1
anderslanglands•

Haven’t actually tried it as I just use Linux for anything like this (none of these libraries were built with Windows in mind), but USD has to build OIIO as a dependency and the USD build club should work on Windows: https://github.com/vfxpro99/usd-build-club/wiki/USD-on-Windows

2
TimmythetinyOP•

I'll have to check this out, didn't know that such a thing existed. Looks like a super useful project.

Edit: Hey, you wrote alShaders! Thanks for your work, it's an inspiration.

1
future_lard•

Use linux subsystem for Windows?

1
TimmythetinyOP•

Makes sense, unless you need to use it to build standalone, non-console apps for your colleagues, correct? I didn't think you could build for Windows from the Ubuntu subsystem.

1
future_lard•

Replace all colleagues with l33t linux haXX0rs

1
[deleted]•

[deleted]

1
sillyone11•

I had to install ubuntu for windows to get it working haha

1
smb3dGeneralist - 15 years experience•

I have precompiled binaries I got from somewhere a while ago. They're not the most recent release, I think like 1.8.2. maybe. I haven't had any issues with them. I can shoot you a link unless you need a specific feature in the newest release...

1
TimmythetinyOP•

Thanks, but I was able to get it working with Vcpkg, as suggested by another poster.

1