Stand alone apps for MAC

조회 수: 4 (최근 30일)
Pappu Murthy
Pappu Murthy 2016년 10월 31일
댓글: Alexandra Harkai 2016년 11월 4일
I compiled a stand alone App for MAC. I installed it and tried to run. The application involves reading of some input data from data files. the app is always stuck and beeps because it can not find the datafiles although I placed them all together in the same location as app. The program script however runs fine and no errors. Have been trying to resolve this and even contacted tech support regarding this but no luck. Any help is appreciated. Thanks in advance.
  댓글 수: 3
Pappu Murthy
Pappu Murthy 2016년 11월 4일
i have tried these path type solutions.. by including the full path etc.. but it didn't work. although path seems to be correct since I checked during the execution of script within matlab. However, after compilation it does not seem to work. All this is pertaining to MAC. for windows PCs no problems at all... even if interchange backward and forward slashes by mistake it seems to work fine. Go figure!
Alexandra Harkai
Alexandra Harkai 2016년 11월 4일
Yep, first thing is to have slashes the proper way (had the same problem).
What solved the problem for me was two things:
1. When I run the executable, I first navigated to my (main) MATLAB directory.
2. I set all loading to be like this:
load('<full_path_from_MATLAB_directory>/datafile.mat')
So if my path is Documents/MATLAB/input_dir/input1.mat then I did
load('input_dir/input1.mat')
Loren's blog summarises the different practices well.

댓글을 달려면 로그인하십시오.

답변 (1개)

Keerthana Chivukula
Keerthana Chivukula 2016년 11월 4일
Additionally, refer to the following documentation link to manage required files in the compiled application: http://www.mathworks.com/help/compiler/adding-required-files-to-the-project.html
  댓글 수: 1
Pappu Murthy
Pappu Murthy 2016년 11월 4일
This does not address the problem at all. Totally irrelevant solution as I see.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Application Deployment에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by