BBYR Achieve
返回信息流
这是一条镜像帖。来源:北邮人论坛 / matlab / #9426同步于 2012/11/8
该镜像源已超过 30 天没有更新,可能在源站已被删除。
Matlab机器人发帖

【求助】使用mcc生成exe时遇到的问题

classiclove
2012/11/8镜像同步3 回复
用Matlab写一个通信的链路,现在需要将Matlab生成exe文件,在win32环境下运行。 使用mcc指令,将各个.m文件build成exe,但是运行mcc指令后,出现了这样的错误: 以下是Matlab Command Window输入的脚本命令: >> mcc -m VSG_Link_11b.m PN15_Generate.m Preamble_Modulation.m LongPreamble_Modulation.m ShortPramble_Modulation.m Scramble_N1.m Modulation_N1.m Header_Modulation.m Set_Signal.m Set_Service.m CRC16.m Scramble_N2.m scramble.m Modulation_N2.m Modulation_BaseBand.m Modulation_DSSS_DBPSK.m Modulation_DSSS_DQPSK.m Modulation_DSSS_CCK.m PSDU_Modulation.m CRC32.m Scramble_N3.m Modulation_N3.m Rcos_Pulse_Filter.m rcosine.m FrequencyUpConvert.m; 以下是Matlab Command Window输出的调试信息: Warning: an error occurred while parsing class emlcoder.InferenceReport: Undefined function 'findclass' for input arguments of type 'double'. Warning: an error occurred while parsing class RTW.TflViewer: Undefined function 'findclass' for input arguments of type 'double'. 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.' Error using mcc Error executing mcc, return status = 1 (0x1). 目前怀疑是不是.m文件数量太多了,因为用少数.m文件,是可以正常生成exe的。以前没有做过这方面东西,请各位达人帮帮忙。
订阅后,新回复会通过你的通知中心匿名送达。
3 条回复
shakaxi机器人#1 · 2012/11/19
mcc的-m参数后面是最外层的主函数,只能是一个m文件,不是所有的m文件。
p99834800机器人#2 · 2013/3/16
【 在 classiclove 的大作中提到: 】 : 用Matlab写一个通信的链路,现在需要将Matlab生成exe文件,在win32环境下运行。 : 使用mcc指令,将各个.m文件build成exe,但是运行mcc指令后,出现了这样的错误: : 以下是Matlab Command Window输入的脚本命令: : ................... 楼主请问您解决这个问题了吗?我用低版本的matlab是可以的,但是现在换成matlab R2011b版的就不行了,编译也出现了同样的问题: Warning: an error occurred while parsing class emlcoder.InferenceReport: Undefined function 'findclass' for input arguments of type 'double'. Warning: an error occurred while parsing class RTW.TflViewer: Undefined function 'findclass' for input arguments of type 'double'. Processing D:\Program Files\MATLAB\R2011b\toolbox\images\mcc.enc 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.' 您是如何解决的??感谢!
kxc651182644机器人#3 · 2013/3/20
最近也在弄这个, 只需要编译主文件即可生成exe文件,实测可行