What does this strange error mean when I am trying to compiler my GUI as standalone application in MATLAB Compiler R2020b?
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 23 Juin 2021
Réponse apportée : MathWorks Support Team
le 23 Juin 2021
My application only consists of .m files and .fig files.
The packaging works without issues but after that, I get the following error during the compilation:
File analysis was canceled because the following error occurred:
Import argument "internal.matlab.importtool.server.ImportUtils" in MATLAB code 'C:\Program Files (x86)\toolbox\matlab\datatools\importtool\matlab\peer\+internal\+matlab\+importtool\+peer\uiimportFile.m' cannot be found or cannot be imported.
And in an additional window:
Input was not a valid graphics object.
Error in = > my_gui.m at line 42
(The referenced line of code called the gui_mainfcn.)
Réponse acceptée
MathWorks Support Team
le 23 Juin 2021
Please note that the mentioned path in the error message "C:\Program Files (x86)\toolbox\matlab\datatools\importtool\matlab\peer\+internal\+matlab\+importtool\+peer\uiimportFile.m" is quite strange. If this is really your MATLAB root directory, please try a fresh installation in an appropriate folder like "C:\Program Files\MATLAB\R2020b".
Besides this, the Import Tool is not supported for code generation. So in case you are using this functionality, it should be removed from your app before compilation (https://www.mathworks.com/help/matlab/ref/importtool.html)
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur MATLAB Compiler dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!