Last active
February 26, 2021 19:49
-
-
Save AnirudhDagar/646fd9ffce72cad6a662f2f9816422d8 to your computer and use it in GitHub Desktop.
OpenColorIO Source Build
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Inside the src directory, create the following dirs | |
mkdir _build | |
mkdir _install | |
# Run Build | |
cd _build | |
cmake ../. -DCMAKE_INSTALL_PREFIX=../_install -DOCIO_BUILD_DOCS=ON -DOCIO_BUILD_GPU_TESTS=OFF -DPython_EXECUTABLE=$(which python) -DOCIO_INSTALL_EXT_PACKAGES=ALL | |
cmake --build . --target install --config Release -j 8 | |
# Confirm all 3 tests pass | |
ctest -V | |
# Set Env variables | |
source share/ocio/setup_ocio.sh.in # Not sure if this is required | |
# Add these to the zshrc | |
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/Users/gollum/Desktop/Work/OpenColorIO/_install/lib | |
export PYTHONPATH=$PYTHONPATH:/Users/gollum/Desktop/Work/OpenColorIO/_install/lib/python3.8/site-packages | |
export PATH=$PATH:/Users/gollum/Desktop/Work/OpenColorIO/_install/bin |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment