From: Ronan on
Hello, I am running Matlab 2009b on Mac 10.5.1 and i'm trying to debug my Mex Files using Eclipse. But i get this error when i launch the debug
----------------------------
dyld: Library not loaded: libtbb.dylib
Referenced from: /Applications/MATLAB_R2009b.app/bin/maci/libmwservices.dylib
Reason: image not found
------------------------------
The debug configurations with Eclipse are :
MAIN -> C/C++ Application :
/Applications/MATLAB_R2009b.app/bin/maci/MATLAB
ARGUMENTS
-nojvm -nodesktop -nosplash

Has anybody encountered this error or can point me to a solution? Thank you!

ps : when running otool -L /Applications/MATLAB_R2009b.app/bin/maci/libmwservices.dylib i get this answer and it seems that libtbb.dylib is not searched at the right location (@loader_path):
otool -L /Applications/MATLAB_R2009b.app/bin/maci/libmwservices.dylib
/Applications/MATLAB_R2009b.app/bin/maci/libmwservices.dylib:
@loader_path/libmwservices.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libut.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libmx.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libmwmathutil.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libmwmpath.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libmwmlutil.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libboost_thread-xgcc40-mt-1_36.dylib (compatibility version 0.0.0, current version 0.0.0)
@loader_path/libboost_system-xgcc40-mt-1_36.dylib (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/IOKit.framework/Versions/A/IOKit (compatibility version 1.0.0, current version 275.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 476.0.0)
libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 677.12.0)
/usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
/usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.0.0)
/usr/lib/libobjc.A.dylib (compatibility version 1.0.0, current version 227.0.0)