Why do I receive "The system cannot find path specified." error in Matlab 2018a while trying code generation of a protected simulink model?

10 visualizaciones (últimos 30 días)
I have a simulink model which has protected reference model in it. When I try to genrate C++ code I get error below.
The system cannot find path specified
'nmake' is not recognized as an internal or external command,
operable program or batch file.
The make command returned an error of 9009
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
However the owner of protected model can genrate code in another computer. When I copy model to different computer it gives error. I am using Microsoft Visual Studio 2012. I have already unistalled and re-installed Visual Studio but it didn't work. I also tried a newer version of Visual Studio(2015) but it did not solve the problem either.
Please help me to resolve this issue.

Respuestas (1)

Yongjian Feng
Yongjian Feng el 2 de Ag. de 2021
Did you try to run it from a Developer Command Prompt window? It seems like it has trouble to find nmake.

Categorías

Más información sobre Simulink Coder en Help Center y File Exchange.

Productos


Versión

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by