Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Jun8

macrumors newbie
Original poster
Apr 12, 2012
1
0
Hello,

I've migrated to MacOS from Ubuntu so am not too familiar with some concepts. I built and installed a library (VTK) manually, i.e. make and sudo make install. Now, when I'm trying to build and run code based on that library. It builds OK but when I try to run I get the message

dyld: Library not loaded: libvtkCommon.5.6.dylib
Referenced from: /usr/local/lib/libpcl_io.1.5.dylib
Reason: image not found
Trace/BPT trap

I checked and saw that the manual install put the file at /usr/local/Cellar/vtk/5.8.0/lib/vtk-5.8/libvtkCommon.dylib.

Why is the default location for the library the Cellar directory, rather than, say, /usr/local/lib? I thought this was Homebrew's folder.

Thanks!

EDIT: I added /usr/local/Cellar/vtk/5.8.0/lib to $DYLD_LIBRARY_PATH, still the same problem.
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.