필터 지우기
필터 지우기

simulink not recoginzing nmake when using convhulln

조회 수: 52 (최근 30일)
Daniel Delannes-molka
Daniel Delannes-molka 2023년 7월 10일
댓글: Daniel Delannes-molka 2023년 7월 11일
But was unique enough to merit its own post.
In short, i'm running a very simple .slx model (seen in attachments) to test out convhulln but its stating that: 'nmake' is not recognized as an internal or external command, operatable program or batch file.
I ran mex -setup and got : MEX configured to use 'Microsoft Visual C++ 2022' for C++ language compilation.
This problem is appearing in simulink simulation and hardware mode but if put in a .m file and run, the issue is no longer there. Even stranger, if convhulln is removed then it runs without issue. Any idea what is going on?

채택된 답변

Angelo Yeo
Angelo Yeo 2023년 7월 11일
Hi Daniel,
  1. I cannot reproduce your issue as I can run simulation for the given model. I also was able to build C++ code by changing the target tlc file to ert.tlc (I don't have your tlc files) and some configuration parameters.
  2. From your error message stating "'nmake' is not recognized", I believe the path to Visual Studio's nmake.exe is not added to your system environment path. One thing you can try is to include the path of "nmake.exe" into system environment path. For example, C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
  3. If another error message follows like "Error: cannot determine the location of the VS common Tools folder", then adding the following path to the PATH environment can be helpful: C:\windows\system32
FYI, see what C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin has.
  댓글 수: 1
Daniel Delannes-molka
Daniel Delannes-molka 2023년 7월 11일
That seems to have been the issue, I think its fixed.
My enviromental variable path includes the following relevent links in this order:
C:\Windows\System32
C:\Windows\System32
C:\Program Files\Microsoft Visual Studio\2022\Community\VC
As an addional note, I was doing a clean reinstallion of my visual studio installation and deleted C:\Program Files (x86)\Microsoft Visual Studio 14.0, which broke a system variable VS140COMNTOOLS : C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\.
I suspect that it was trying to find nmake via this path(that no longer existed) instead of using the fresh installation.
Thank you!

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by