- 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.
- 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
- 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
simulink not recoginzing nmake when using convhulln
19 views (last 30 days)
Show older comments
Daniel Delannes-molka
on 10 Jul 2023
Commented: Daniel Delannes-molka
on 11 Jul 2023
This issue appeared when trying to resolve another issue that I posted about here:(https://www.mathworks.com/matlabcentral/answers/1990263-simulink-coder-build-for-raspberry-pi-4-failing-when-using-convhulln?s_tid=srchtitle)
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?
0 Comments
Accepted Answer
Angelo Yeo
on 11 Jul 2023
Hi Daniel,
FYI, see what C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin has.
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!