Building model with canoe target file, getting error nmake' is not recognized as an internal or external command
Show older comments
### Building New: .\\New.bat C:\Users\320123918\Downloads\New_cn_rtw>set VSCMD_START_DIR=C:\Users\320123918\Downloads\New_cn_rtw C:\Users\320123918\Downloads\New_cn_rtw>set WINSDK_71A= C:\Users\320123918\Downloads\New_cn_rtw>cd . C:\Users\320123918\Downloads\New_cn_rtw>set PATH=C:\ProgramData\Anaconda3;C:\ProgramData\Anaconda3\Library\mingw-w64\bin;C:\ProgramData\Anaconda3\Library\usr\bin;C:\ProgramData\Anaconda3\Library\bin;C:\ProgramData\Anaconda3\Scripts;C:\Program Files (x86)\Borland\CaliberRM SDK 11.4\lib;C:\WINDOWS\CCM\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\WINDOWS\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps;C:\Program Files (x86)\Adaptiva\AdaptivaClient\bin\x32;C:\Program Files (x86)\Adaptiva\AdaptivaClient\bin\x64;\cc\bin;C:\Program Files\Git\cmd;C:\Program Files\1E\Client\Extensibility\NomadBranch;C:\Program Files\MATLAB\R2021a\bin;C:\Program Files (x86)\Vector CANdb++ 3.1\Exec32;C:\Users\320123918\AppData\Local\Microsoft\WindowsApps C:\Users\320123918\Downloads\New_cn_rtw>call "set MINGW_ROOT_PATH=C:\ProgramData\MATLAB\SupportPackages\R2021a\3P.instrset\mingw_w64.instrset" x86 The filename, directory name, or volume label syntax is incorrect.
C:\Users\320123918\Downloads\New_cn_rtw>nmake -f New.mk MAT_FILE=1 GENERATE_MODEL_DESCRIPTION=1 DEBUG_BUILD=0 HAS_WES64_BUILD=0 HAS_WES_BUILD=1 HAS_ERT_BUILD=0 GENERATE_VMODULE=0 COMBINE_OUTPUT_UPDATE_FCNS=0 INCLUDE_MDL_TERMINATE_FCN=1 MULTI_INSTANCE_CODE=0 OPTS="-DTID01EQ=0" TARGET_ARCH="x86" XCP_MAX_MSG_LENGTH=-1 ANALYSIS_MODEL=0 HAS_CAPL_CALL=0 DO_COMPILER_OPTIMIZATION=0 BUILD_ERT=0 'nmake' is not recognized as an internal or external command, operable program or batch file.
C:\Users\320123918\Downloads\New_cn_rtw>echo The make command returned an error of 9009 The make command returned an error of 9009 C:\Users\320123918\Downloads\New_cn_rtw>An_error_occurred_during_the_call_to_make 'An_error_occurred_during_the_ca
2 Comments
Aron Vidor
on 26 Feb 2024
Hello! I bumped into the same problem, were you able to solve your problem in the end? If yes I would appreciate any kind of help relating the issue.
Deepan
on 24 Apr 2024
Hello,
+1 on this , I too have come to the same problem, any update on this?
Answers (1)
cedric manoury
on 18 Jul 2025
0 votes
Hi all,
I was facing the same issue and solved it by installing Visual Studio Community.
Then, ensure that the Matlab compiler used is Microsoft Visual C++ 2022 (C)' for C language compilation by sending command : mex -setup C.
Categories
Find more on Deployment, Integration, and Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!