I got the following error message when compiling a code, even though I’d already passed the correct include/library paths.
dyld: Library not loaded: libboost_filesystem.dylib
Referenced from: /Users/kunigami/dev/osl/build/macosx/shaders/../oslc/oslc
Reason: image not found
This happend because I built boost from source and kept it local. Thus the path to the library was not the default one. To solve this problem we have to edit the environment variable
DYLD_LIBRARY_PATH, which is analogous to linux