Why is MATLAB R2017a unable to locate build tool for Visual Studio 2017?
For example, when building the 'vdp' model it throws the following error messages:
NMAKE : fatal error U1052: file '<http://vdp.mk/ vdp.mk>' not found
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
### Build procedure for model: 'vdp' aborted due to an error.
Error(s) encountered while building "vdp":
### Failed to generate all binary outputs.
### Validating other build tools ...
Unable to locate build tool "Microsoft Visual C Compiler": cl
Unable to locate build tool "Microsoft Visual C Linker": link
Unable to locate build tool "Microsoft Visual C++ Compiler": cl
Unable to locate build tool "Microsoft Visual C++ Linker": link
Unable to locate build tool "Microsoft Visual C/C++ Archiver": lib
Unable to locate build tool "NMAKE Utility": nmake
Component:Simulink | Category:Block diagram error
The reproduction steps as follow:
1. Set up MEX compiler as 'Microsoft Visual C++ 2017 (C)' by executing the command below at MATLAB Command Window:
Select the 'Microsoft Visual C++ 2017 (C)'.
2. Execute the following command at MATLAB Command Window to a model:
3. The model will generate code and then fail at the make stage as shown above.
This will affect all functionalities that require code generation like Rapid Accelerator mode, etc.