Building model with canoe target file, getting error nmake' is not recognized as an internal or external command
2 次查看(过去 30 天)
显示 更早的评论
### 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 个评论
Aron Vidor
2024-2-26
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.
回答(1 个)
cedric manoury
2025-7-18
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Multicore Processor Targets 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!