Got following error in MATLAB R2018b but not with MATLAB R2022b both on Windows 10 Machine.
Error using coder.internal.callMakeHook
The call to rtwsfcnfmi_make_rtw_hook, during the after_make hook generated the following error:
Failed to build FMU
The build process will terminate as a result.
Error in
coder.internal.ModelBuilder>@(lBuildInfoArg,lBuildOptsArg)coder.internal.callMakeHook('after_make',lMakeOptions,lBuildOptsArg,'GenerateCodeOnly',generateCodeOnly,'CodeWasUpToDate',lCodeWasUpToDate,'FolderToRunFrom',mainCompileFolder,'ModelReferenceTargetType',h.MdlRefBuildArgs.ModelReferenceTargetType,'BuildDirectory',h.BuildDirectory,'ModelName',h.ModelName,'BuildInfo',lBuildInfoArg,'LocalAnchorFolder',lAnchorFolder,'TemplateMakefile',lTemplateMakefile,'MakeRTWHookFile',h.MakeRTWHookFile,'Verbose',h.MdlRefBuildArgs.Verbose,'DispHook',h.DispHook,'SlBuildProfileIsOn',h.MdlRefBuildArgs.slbuildProfileIsOn)
(line 1074)
coder.internal.callMakeHook(...
Error in coder.internal.compileStage
Error in coder.internal.ModelBuilder/buildProcedure (line 1301)
compileResult = coder.internal.compileStage...
Error in coder.internal.ModelBuilder/make_rtw (line 212)
buildResult = buildProcedure...
Error in coder.internal.ModelCodegenMgr/make_rtw (line 8)
buildResult = obj.make_rtw(varargin);
Error in make_rtw (line 20)
buildResult = h.make_rtw(buildArgs, varargin{:});
Error in build_target
Error in build_target
Error in build_standalone_rtw_target
Error in slbuild_private
Error in slbuild_private
Error in sl (line 15)
[varargout{1:nargout}]=feval(varargin{:});
Error in slbuild (line 83)
sl('slbuild_private', mdl, target, varargin{2:end});
Error in rtwbuild (line 234)
slbuild(sys, 'StandaloneRTWTarget', ...
Got following error in MATLAB R2018b but not with MATLAB R2022b both on Windows 10 Machine.