Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Unable to run standalone application created with deploytool (dyld issue) on MAC OS X 10.5

Subject: Unable to run standalone application created with deploytool (dyld issue) on MAC OS X 10.5

From: Rossella

Date: 14 Apr, 2011 18:11:04

Message: 1 of 2

Hi,
I have created a standalone application using deploytool (Matlab R2008b, MAC OS X 10.5). Though, when I try to launch it, the terminal appears with the following error:
dyld: Library not loaded: @loader_path/libmwmclmcrrt.7.9.dylib
  Referenced from: /Applications/MATLAB_R2008b.app/work/MagicExample/MagicExampleApp/distrib/MagicExampleApp
  Reason: image not found
Trace/BPT trap
And the application quits.

Here's the steps that I followed to create the standalone application:
1) create new project from deploytool gui (selecting Matalb Compiler & Standalone Application)
2) Add the .m file into the main function folder (e.g., the magicsquare.m example provided in the Matlab documentation).
3) Uncheck “Embed CTF archive into the Application” from the project settings window (but I tried also leaving it checked)
4) Build the project (eventhough the compilation is successfull, I got a couple of warnings aboout Duplicate directory name)
5) Package the component
6) Install the MCR (I'm trying to run the application on my machine, i.e., the same generating the standalone application, so I guess I actually do not need to install the MCR, but I wanted to make sure it was working).
7) Write the following command in the matlab command line:
>> setenv DYLD_LIBRARY_PATH /Applications/MATLAB/MATLAB_Compiler_Runtime/v79/runtime/maci:/Applications/MATLAB/MATLAB_Compiler_Runtime/v79/sys/maci:/Applications/MATLAB/MATLAB_Compiler_Runtime/v79/bin/maci:/System/Library/Frameworks/JavaVM.framework/JavaVM:/System/Library/Frameworks/JavaVM.framework/Libraries
>> setenv XAPPLRESDIR /Applications/MATLAB/MATLAB_Compiler_Runtime/v79/X11/app-defaults

Then I try to launch the application doubleclicking on MagicExampleApp; the terminal opens with the error wirtten at the beginning of this post and a message saying that the application MagicExampleApp quit unexpectedly appears.

Am I doing something wrong?
Thanks in advance for your help.
Rossella

Subject: Unable to run standalone application created with deploytool (dyld issue) on MAC OS X 10.5

From: Aurelien Queffurust

Date: 15 Apr, 2011 11:07:04

Message: 2 of 2

"Rossella" wrote in message <io7dbo$g3g$1@fred.mathworks.com>...
> Hi,
> I have created a standalone application using deploytool (Matlab R2008b, MAC OS X 10.5). Though, when I try to launch it, the terminal appears with the following error:
> dyld: Library not loaded: @loader_path/libmwmclmcrrt.7.9.dylib
> Referenced from: /Applications/MATLAB_R2008b.app/work/MagicExample/MagicExampleApp/distrib/MagicExampleApp
> Reason: image not found
> Trace/BPT trap
> And the application quits.
>
> Here's the steps that I followed to create the standalone application:
> 1) create new project from deploytool gui (selecting Matalb Compiler & Standalone Application)
> 2) Add the .m file into the main function folder (e.g., the magicsquare.m example provided in the Matlab documentation).
> 3) Uncheck “Embed CTF archive into the Application” from the project settings window (but I tried also leaving it checked)
> 4) Build the project (eventhough the compilation is successfull, I got a couple of warnings aboout Duplicate directory name)
> 5) Package the component
> 6) Install the MCR (I'm trying to run the application on my machine, i.e., the same generating the standalone application, so I guess I actually do not need to install the MCR, but I wanted to make sure it was working).
> 7) Write the following command in the matlab command line:
> >> setenv DYLD_LIBRARY_PATH /Applications/MATLAB/MATLAB_Compiler_Runtime/v79/runtime/maci:/Applications/MATLAB/MATLAB_Compiler_Runtime/v79/sys/maci:/Applications/MATLAB/MATLAB_Compiler_Runtime/v79/bin/maci:/System/Library/Frameworks/JavaVM.framework/JavaVM:/System/Library/Frameworks/JavaVM.framework/Libraries
> >> setenv XAPPLRESDIR /Applications/MATLAB/MATLAB_Compiler_Runtime/v79/X11/app-defaults
>
> Then I try to launch the application doubleclicking on MagicExampleApp; the terminal opens with the error wirtten at the beginning of this post and a message saying that the application MagicExampleApp quit unexpectedly appears.
>
> Am I doing something wrong?
> Thanks in advance for your help.
> Rossella




See this technical note,
Why do I receive an error when I execute an application compiled using MATLAB Compiler 4.9 (R2008b) on a Mac Intel?
http://www.mathworks.com/support/solutions/en/data/1-9MJO40/?solution=1-9MJO40


Aurélien
http://blog.developpez.com/matlab4geek/

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us