Error using Matlab Compiler App (ApplicationCompiler) - Dependency Analysis

3 ビュー (過去 30 日間)
Stefan
Stefan 2014 年 6 月 24 日
コメント済み: Stefan 2014 年 7 月 3 日
Hi there,
I want to deploy my application with the ApplicationCompiler-App (Matlab Compiler) to get a standalone. But I get an error, just after adding the main-file.
Here is what it says in the command window:
Error using matlab.codetools.requiredFilesAndProducts (line 91)
Internal Error: Could not determine class of method "C:\Program
Files\MATLAB-R2014a\toolbox\slvnv\reqmgt\@RptgenRMI\data.p". Number of classes checked: 16.
Error in matlab.depfun.internal.filesAndSupportPackages (line 7)
[depfileslist, depproducts] = matlab.codetools.requiredFilesAndProducts(varargin);
It also appears, if I add or delete any dependent files. Does anyone know what is wrong? Or how I can get more information where exactly the problem is? I have no idea about that.
It seems to me, that the dependenciy-check fails somehow.
Thanks for your help.
Greetings, stetsc

採用された回答

Stefan
Stefan 2014 年 6 月 24 日
Hi Titus,
no I don't use any simulink components in this program. I use some ActiveX-Server-Communication with external software and some file reading operations. And I use a codegenerated GUI.
But I don't think this is unsupported by the compiler. Do you know any possibility to see some more information about the dependency check? in a log for example?
Stefan
  1 件のコメント
Titus Edelhofer
Titus Edelhofer 2014 年 6 月 24 日
Hi Stefan,
I just gave it a try, the same happens to me. As a workaround you can take Simulink V&V off the path before compiling:
f = dir(fullfile(matlabroot, 'toolbox', 'slvnv'));
for i=1:length(f)
rmpath(fullfile(matlabroot, 'toolbox', 'slvnv', f(i).name));
end
Admittedly not nice, but works. I'll give a note to our development to find out what's going wrong here.
Titus

サインインしてコメントする。

その他の回答 (2 件)

Titus Edelhofer
Titus Edelhofer 2014 年 6 月 24 日
Hi Stefan,
this comes from Simulink Verification and Validation, which is not supported by MATLAB Compiler, see supported Products. Do you use in your code some functionality from Simulink V&V? Does commenting the part of the code that seems to use some report generation functionality help?
Titus

Stefan
Stefan 2014 年 6 月 27 日
Hi Titus,
many thanks for that simple workaround. Works nice.
Do I have to add the path again after deployment? Or does it readd automatically on restart of matlab?
Stefan
  2 件のコメント
Titus Edelhofer
Titus Edelhofer 2014 年 6 月 27 日
If you remove "by hand" like in the few lines I wrote, MATLAB will gave strange warnings afterwards. Restarting MATLAB resets everything ...
Stefan
Stefan 2014 年 7 月 3 日
Hi Titus,
thanks a lot for your help.
Stefan

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Compiler についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by