Error adding file to the application compiler
9 次查看(过去 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
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!