Skip to content

Compile OpenColorIO (with python binding) on Windows

Tested on version 2.3.0

Requirements

Get source

You can get source from GitHub

Ensure you have python 3.10 in your PATH environment variable before running the following commands.

Compile

bash
cmake -S . -B ./build -DCMAKE_INSTALL_PREFIX=<OPENCOLORIO_SOURCE_DIR>/install \
 -DCMAKE_BUILD_TYPE=Release -DOCIO_BUILD_NUKE=OFF -DOCIO_BUILD_DOCS=OFF -DOCIO_BUILD_TESTS=OFF \
 -DOpenEXR_ROOT=<OPENEXR_SOURCE_DIR>\install \
 -Dpybind11_ROOT=<PYBIND11_SOURCE_DIR>\mock_install \
 -DZLIB_ROOT=<ZLIB_SOURCE_DIR>\prefix_install -DPython_EXECUTABLE=<PYTHON_INSTALL_DIR>  

 cmake --build ./build --target install --config Release