Compile OpenColorIO (with python binding) on Windows
Tested on version 2.3.0
Requirements
- cmake (tested with v3.26.1)
- gcc (tested with v10.3)
- pystirng (tested with v1.1.4)
- openexr (tested with v3.2.1)
- python (tested with v3.10)
- pybind11
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