필터 지우기
필터 지우기

Compiler error message: signal 127

조회 수: 1 (최근 30일)
Jean Bilheux
Jean Bilheux 2012년 11월 21일
I built a Graphical Interface (let's call it myGUI)that works perfectly from Matlab. I'm trying to make a standalone version of it and built it without any error or warning messages from the compiler. Then when I try to launch it from Matlab
>> cd myGUI/distrib/myGUI.app/Contents/MacOS/
>> !./myGUI
Undefined function or variable 'myGUI'.
MATLAB:UndefinedFunction
./myGUI: Signal 127
My problem is that this error message does not give me much information about where to start looking. Any idea where the problem may come from ?
Thanks a lot
Jean
ps: I'm working on a Mac running Mac OS 10.8.2 with R2012b.

채택된 답변

Jean Bilheux
Jean Bilheux 2012년 11월 22일
I kept playing with the files and found the issue. I had a startup.m routine that had for goal to add the various folders to the Matlab path when starting the application... this makes the compiler unhappy. Renaming it myStartup.m and calling it from inside the main routine works this time.
Thanks Walter for your help.
Jean

추가 답변 (3개)

Walter Roberson
Walter Roberson 2012년 11월 21일
Is it a script or a function? I don't know if scripts can be compiled yet (possibly they added that capability recently.)

Jean Bilheux
Jean Bilheux 2012년 11월 21일
It's a function.. well a set a functions. The main function was created automatically with GUIDE.
  댓글 수: 1
Walter Roberson
Walter Roberson 2012년 11월 21일
I do not know if it is necessary, but did you try adding the .fig file as an additional resource? Also, is the executable name exactly the same name as the GUI ?

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


Jean Bilheux
Jean Bilheux 2012년 11월 21일
I tried with same and different names...the same. I also tried to add the .fig or even all the .m files in the resources....always the same message.

카테고리

Help CenterFile Exchange에서 Troubleshooting in MATLAB Compiler SDK에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by