Building model with canoe target file, getting error nmake' is not recognized as an internal or external command

조회 수: 7 (최근 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
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.
Deepan
Deepan 2024년 4월 24일
Hello,
+1 on this , I too have come to the same problem, any update on this?

댓글을 달려면 로그인하십시오.

답변 (1개)

cedric manoury
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.

카테고리

Help CenterFile Exchange에서 Multicore Processor Targets에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by