[HELP] Deploying an app with OpenImageIO on macOS
Hey guys,
I am wondering if you have some hints how to properly deploy the application using OpenImageIO on macOS? When I build the library myself from the sources, cmake grabs a bunch of dependencies from my brew installation and I end up having a mix of dependencies that have fixed dependency paths into /opt/homebrew/lib/.
Am I facing manual scripting with install_name_tool to re-write all the dylib deps? Or is there a better way to do it?
This would be probably more work in your case than re-writing dylib deps but I built OpenImageIO deps manually with cmake option: -DBUILD_SHARED_LIBS=OFF. Then OpenImageIO dylib has no external dependencies except for system ones.
The easiest way I have found so far is to use conan that can build a static version with quite a lot of dependencies. Works on both M1 and Intel macs.