building standalone application fails on file I don't use

7 ビュー (過去 30 日間)
Eric Keller
Eric Keller 2012 年 1 月 30 日
コメント済み: yonatan 2014 年 7 月 14 日
Building a standalone application from a project that I created in 2010a, and has built successfully many times.
In particular, I get the following error:
Warning: an error occurred while parsing class RTW.TflViewer: Undefined function 'findclass' for input arguments of type 'double'.
It stays a warning for sufficiently long that I start to hate my life and then I get this:
Depfun error: 'The specified super-class 'Simulink.codemetrics.SlCodeMetrics' contains a parse error or cannot be found on MATLAB's search path, possibly shadowed by another file with the same name.'
Any suggestions?
The only thing I can think is that our license changed and that some nonsense comes over from the previous version. The compiler is obnoxiously slow, maybe Mathworks could make it so it only touches files when they are called for by the program being compiled instead of going out and looking for errors in files that aren't used. Reminds me of the good old days when you could start a compilation and take a break with confidence that it wouldn't be done when you got back.

採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 1 月 30 日
This seems like it could be due to a bug. Please consider reporting this to MathWorks Tech Support.
Are you using functions for a particular toolbox in your compiled code? If yes, try manually specifying paths to the required toolboxes using the "-N -p" option and see if the issue is resolved:
>> mcc -m mytest.m -N -p 'C:\Program Files\MATLAB\R2011b\toolbox\comm'
  6 件のコメント
Kwang Hyo
Kwang Hyo 2013 年 5 月 15 日
i have this problem Depfun error: 'The specified super-class 'Simulink.codemetrics.SlCodeMetrics' contains a parse error or cannot be found on MATLAB's search path, possibly shadowed by another file with the same name.
so enter this oder mcc -m mytest.m -N -p 'C:\Program Files\MATLAB\R2011b\toolbox\comm'
but i got >> mcc -m mytest.m -N -p 'C:\Program Files\MATLAB\R2011b\toolbox\comm' Depfun error: 'Unable to locate mytest.m as a function on the MATLAB path' Error using mcc Error executing mcc, return status = 1 (0x1).
why..??help me..
yonatan
yonatan 2014 年 7 月 14 日
hi Kaustubha Govind, I have the same problem how can i apply your answer to solve problem. here is the displayed problem output;
Depfun error: 'The specified super-class 'Simulink.codemetrics.SlCodeMetrics' contains a parse error or cannot be found on MATLAB's search path, possibly shadowed by another file with the same name.'
thanks a lot!

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

その他の回答 (1 件)

KVGCE
KVGCE 2012 年 5 月 8 日
Hello... I'm getting the same problem... @Eric Keller or @Kaustubha Govind please explain how to solve it... keshava.gn@gmail.com
  3 件のコメント
Chirag
Chirag 2013 年 8 月 27 日
Hi.. I am trying to convert a MATLAB code into a JAVA code using MATLAB Builder JA and I am facing the same problem and it is showing the error as : Depfun error: 'The specified super-class 'Simulink.codemetrics.SlCodeMetrics' contains a parse error or cannot be found on MATLAB's search path, possibly shadowed by another file with the same name.' Kindly tell me how to proceed further.
Walter Roberson
Walter Roberson 2013 年 8 月 27 日

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

カテゴリ

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