Run app created in Matlab on Mac
조회 수: 3 (최근 30일)
이전 댓글 표시
Good day! Could anyone please tell me how to run application created in Matlab on Mac? My situation is:
I don't have Matlab on Mac, but I've installed MCR, and I can't understand lines in readme.txt file:
setenv DYLD_LIBRARY_PATH
<mcr_root>/v711/runtime/maci64:
<mcr_root>/v711/sys/os/maci64:
<mcr_root>/v711/bin/maci64:
/System/Library/Frameworks/JavaVM.framework/JavaVM:
/System/Library/Frameworks/JavaVM.framework/Libraries
setenv XAPPLRESDIR <mcr_root>/v711/X11/app-defaults
So what should I do according these lines???
댓글 수: 0
채택된 답변
Chirag Gupta
2011년 8월 9일
You need to set two environment variables to the following.
DYLD_LIBRARY_PATH and XAPPLRESDIR. The mcr_root is the location where you installed the MCR.
Open a Terminal: Execute the commands above (replacing mcr_root with actual location), navigate to where you have the Matlab app, and run it.
댓글 수: 3
Titus Edelhofer
2011년 8월 11일
your google tells you the right thing to do: you could just enter
export DYLD_LIBRARY_PATH = <mcr_root>/v711/runtime/maci64:<mcr_root>/ ...
export XAPPLRESDIR = ...
Titus
추가 답변 (2개)
Jerome Lecoq
2013년 1월 4일
This post is very good demonstration of how terrible the deployment process is on the mac. We SHOULD be able to just click on it (like in the windows plateform).
댓글 수: 1
Sagar Zade
2021년 1월 29일
편집: Sagar Zade
2021년 1월 29일
For newer MATLAB versions this post might be helpful: Why do I receive an error about "libmwlaunchermain.dylib" library not loaded when I attempt to execute my compiled application on macOS?
Maxim
2011년 8월 17일
댓글 수: 2
Chirag Gupta
2011년 8월 17일
In your root you will most probably have an hidden .bashrc file or a .profile file. You can edit this file and set the environment variables there. This will ensure that these variables persist
참고 항목
카테고리
Help Center 및 File Exchange에서 Environment and Settings에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!