MATLAB: What is the setting for DYLD_LIBRARY_PATH on Intel Mac to run an application created with MATLAB Compiler 4.5 (R2006b)

deployMATLAB Compiler

I have created an application with MATLAB Compiler on an Intel Mac. To run the application I need to set the DYLD_LIBRARY_PATH as specified in the documentation. However, I still receive an error that "libmwmclmcrrt.dylib" is not found.

Best Answer

This bug has been fixed in Release 2007a (R2007a). For previous product releases, read below for any possible workarounds:
There is an error within the documentation for MATLAB Compiler 4.5 (R2006b) Intel Mac beta within the reference section titled "UNIX Settings for Development and Testing" and "UNIX Paths for Runtime Deployment".
The settings listed under the subsection for Mac OS X are for Macs with PowerPC chips. For Intel Macs the settings should be as follows.
For Development and Testing on computers with MATLAB Compiler installed:
setenv DYLD_LIBRARY_PATH
matlabroot/bin/maci:
matlabroot/sys/os/maci:
/System/Library/Frameworks/JavaVM.framework/JavaVM:
/System/Library/Frameworks/JavaVM.framework/Libraries
setenv XAPPLRESDIR matlabroot/X11/app-defaults
For Runtime Deployment on computers with the MCR installed:
setenv DYLD_LIBRARY_PATH
mcr_root/version/runtime/maci:
mcr_root/version/sys/os/maci:
mcr_root/version/bin/maci:
/System/Library/Frameworks/JavaVM.framework/JavaVM:
/System/Library/Frameworks/JavaVM.framework/Libraries
setenv XAPPLRESDIR mcr_root/version/X11/app-defaults