Instructions on how to build for Windows


swamiforlife@...
 

Can anyone point me to a link or tutorial showing how to build OpenColorIO for Windows?
If precompiled versions are available that would be even better.


Robert Fanner
 
Edited

There are some notes on building from source using CMake here:

https://opencolorio.org/installation.html

I'm not aware of a containerised solution for the windows side of things, but I thought I'd mention that vcpkg has a package script for OCIO: https://github.com/microsoft/vcpkg/tree/master/ports/opencolorio


Simon Björk
 

Vcpkg works great to build the lib, cmd applications etc. However I haven't had any success with the python bindings using vcpkg.

/Simon


-------------------------------
Simon Björk
Compositor/TD

+46 (0)70-2859503


Den tis 7 apr. 2020 kl 13:01 skrev Robert Fanner <robert.fanner@...>:

[Edited Message Follows]

There are some notes on building from source using CMake here:

https://opencolorio.org/installation.html

I'm not aware of a containerised solution for the windows side of things, but I thought I'd mention that vcpkg has a package script for OCIO: https://github.com/microsoft/vcpkg/tree/master/ports/opencolorio


Patrick Hodoul
 

Based on the build settings, vcpkg does not build the Python Bindings.


Simon Björk
 

But is there a way? I tried editing the vcpkg config for opencolorio and tried with USE_PYTHON, BUILD_PYTHON etc, but none of them worked.


-------------------------------
Simon Björk
Compositor/TD

+46 (0)70-2859503


Den tis 7 apr. 2020 kl 15:34 skrev Patrick Hodoul <patrickhodoul@...>:

Based on the build settings, vcpkg does not build the Python Bindings.


Patrick Hodoul
 

The cmake flag to set is OCIO_BUILD_JNIGLUE.
You can replace "-DOCIO_BUILD_JNIGLUE:BOOL=OFF" by "-DOCIO_BUILD_JNIGLUE:BOOL=ON".


Simon Björk
 

Thanks Patrick, I'll give it a try. Pretty sure I tried that, but it might have been that I changed  -DOCIO_BUILD_PYGLUE:BOOL=ON.

Also, python is updated to Python3 in the portfile, I guess that needs to be replaced with 2?

/Simon 


-------------------------------
Simon Björk
Compositor/TD

+46 (0)70-2859503


Den tis 7 apr. 2020 kl 15:48 skrev Patrick Hodoul <patrickhodoul@...>:

The cmake flag to set is OCIO_BUILD_JNIGLUE.
You can replace "-DOCIO_BUILD_JNIGLUE:BOOL=OFF" by "-DOCIO_BUILD_JNIGLUE:BOOL=ON".


Patrick Hodoul
 

Yes.  Python 3 is not supported by OCIOv1.