Hi!
I was trying to convert Mat files into .exe file by Matlab comiler R2019 which gives below error:
Error using BuildDeploy (line 11)
Error while determining required deployable files. Compilation terminated.
Details:
Error using matlab.depfun.internal.SimulinkModelInspector (line 11)
Simulink is not avaiable.
Then i used simple function to do same but same error was getting.Example
function MyNewApp
fprintf('Hello World!\n');
end
But nither my code nor example have simlink.
The command to compile is :
mcc -m MyNewApp.m
This works well for R2015b - the executable runs as expected - but not for R2019b
When disabling the constructor code of the file SimulinkModelInspector.m. since this was mentioned in an error message - the behavior changes:
function obj = SimulinkModelInspector(objs, fcns, flags)
% if ~license('test', 'Simulink')
% %error(message());
% error('Simulink is not avaiable.');
% end
%
% % Pass on the input arguments to the superclass constructor
% obj@matlab.depfun.internal.MwFileInspector(objs, fcns, flags);
end
The command - taken from doc mcc - now results in following error message:
mcc -m MyNewApp.m
Error while determining required deployable files. Compilation terminated.
Details:
Not enough input arguments.
also this command with more specified options has the same result
mcc -m -W main -T link:exe MyNewApp.m
How can i overcome from this error?
Thanks
2 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/664463-matlab-compiler-error-during-converting-mat-files-into-exe#comment_1164108
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/664463-matlab-compiler-error-during-converting-mat-files-into-exe#comment_1164108
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/664463-matlab-compiler-error-during-converting-mat-files-into-exe#comment_1164383
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/664463-matlab-compiler-error-during-converting-mat-files-into-exe#comment_1164383
Sign in to comment.