Error adding file to the application compiler

조회 수: 11 (최근 30일)
Abdul Atisam
Abdul Atisam 2016년 3월 30일
답변: Brendan Hamm 2016년 3월 30일
Hello Everyone, I am trying to generate a standalone application using 'Application Compiler' for a very simple GUI impelemented using Guide.
Just for a background, I have a vvvvvery simple GUI in which user enters a number in an 'edit text box' which is red by the GUI and displayed in another 'static text box' on the push of a button (Push Button). The GUI is working in MATLAB very well.
Now I want to generate a standalone application using the 'Application Compiler' (in the APPS tab of MATLAB). As soon as I click on the 'Application Compiler App', I get a bunch of errors in the command window listed below and the app starts:
Error using mtree (line 72) cannot read input file C:\Program Files\MATLAB\R2015b\toolbox\matlab\datatypes\cell.m
Error in matlab.depfun.internal.cacheMtree (line 24) t = mtree(file, '-file', '-com');
Error in isClassdef>hasClassDef (line 27) mt = matlab.depfun.internal.cacheMtree(file);
Error in isClassdef (line 18) tf = hasClassDef([file '.m']);
Error in className_impl (line 118) elseif isClassdef(whichResult)
Error in builtinClassName (line 44) [name, clsFile] = className_impl(mth);
Error in builtinClassCTOR (line 19) [name, clsFile] = builtinClassName(whichResult);
Error in className (line 10) [name, clsFile] = builtinClassCTOR(whichResult);
Error in matlab.depfun.internal.MatlabSymbol/determineClassType (line 742) [name, clsFile] = className(symObj.WhichResult);
Error in matlab.depfun.internal.MatlabSymbol/get.ClassName (line 549) obj.determineClassType();
Error in matlab.depfun.internal.ClassSet/add (line 141) c = sym.ClassName;
Error in matlab.depfun.internal.MatlabSymbol.addProxyClass (line 59) add(sym.classList, sym);
Error in matlab.depfun.internal.MatlabSymbol.initClasses (line 116) MatlabSymbol.addProxyClass(...
Error in matlab.depfun.internal.initCaches (line 11) matlab.depfun.internal.MatlabSymbol.initClasses();
Ignoring the errors now, when I try to add the readanddisplay.m (GUI mfile) into the MATLAB COMPILER app to generate the standalone application, it displays me the following error in the message box:
- The following MATLAB files were not added because they could not be read: C:\Users\...\MATLAB\readanddisplay.m
now when I press OK on the error messege box, it disappears and no m-file is added to the Compiler app and obviously the Pakage button (upper right) remains OFF and I am unable to add the mfile to the compiler.
I am using windows-7 and I have the licence of all the products of MATLAB and is running r2015b also i have tried to uninstall and reinstall the MATLAB, furthermore I have also installed r2016a but the problem is still there.
Any help in this regard will be very appriciated.
Regards Atisam

답변 (1개)

Brendan Hamm
Brendan Hamm 2016년 3월 30일
GUIDE is not supported by the Compiler App: Compiler Support.
You would need to rewrite this interface to compile it.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by