VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Build Error NMAKE for simulink model

I'm trying to set up the toolchain to build simulink models for Veristand. But I think I ran into the compatibility issues between Visual C++ compiler 2010, SDK 7.1 and .NET Framework 4.5+.

ERROR: The Windows Headers and Libraries are not installed. 
Confirm support for the Microsoft Visual C++ compiler is properly installed. Visit www.ni.com/info and enter the Info Code ex3efp for a list of supported compiler configurations. 
 
E:\Work\Simulatori\OL\OL_2015\Software\Modello Veristand\OL_Model\OL2015Model_niVeriStand_rtw>echo The make command returned an error of 1  
The make command returned an error of 1 
 
E:\Work\Simulatori\OL\OL_2015\Software\Modello Veristand\OL_Model\OL2015Model_niVeriStand_rtw>An_error_occurred_during_the_call_to_make 
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, 
operable program or batch file.
### Aborted due to an error in the build procedure for model: OL2015Model

Following the link in the log gets here. I followed the instructions, installed the patch, same situation.

I tried multiple times reinstalling all the components: VC++, SDK and the patch. I'm still getting 

the same error.

Anyone who solved the issue?

 

0 Kudos
Message 1 of 4
(4,612 Views)

What Windows OS version are you using? 

Problem Installing the Windows SDK 7.1 for VeriStand Model Compilation

http://digital.ni.com/public.nsf/allkb/DD49A2842454008A86257F86004804FE

 

What Simulink version are you using? 

Make sure its compatible with the compiler version you're using

http://digital.ni.com/public.nsf/websearch/10BBA745CD5A2FAE86257F9A0054FF71

 

Can you build using a non-veristand code generation and the visual c++ compiler?

Basically, I'm trying to isolate whether the problem is the VeriStand code generation make files inability to locate the compile tools vs a problem with Simulink Coder.

 

 

Interesting post on MathWorks discussion forum about installing 7.1 SDK: 

https://www.mathworks.com/matlabcentral/answers/101105-how-do-i-install-microsoft-windows-sdk-7-1?re...

Tim A.
0 Kudos
Message 2 of 4
(4,589 Views)

I'm on Windows 7 SP1, Simulink r2015b (8.6) 64 bit.

Veristand Compatibility.PNG

The code generation was successful, the compiling wasn't.

I'm able to compile a simple model to an executable for Windows.

 

Whole log:

### VeriStand 2016.0.0.72 (2016) code generation started
### Invoking Target Language Compiler on OL2015Model.rtw
### Using System Target File: C:\VeriStand\2016\ModelInterface\tmw\target\NIVeriStand.tlc
### Loading TLC function libraries
### Initial pass through model to cache user defined code
### Caching model source code
### Writing header file OL2015Model.h
.
### Writing header file OL2015Model_types.h
### Writing header file rtwtypes.h
### Writing header file builtin_typeid_types.h
### Writing header file multiword_types.h
### Writing header file zero_crossing_types.h
.
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing source file OL2015Model.c
### Writing header file OL2015Model_private.h
### Writing header file rtmodel.h
### Writing source file OL2015Model_data.c
### Writing header file rt_nonfinite.h
.
### Writing source file rt_nonfinite.c
### Writing header file rt_defines.h
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### TLC code generation complete.
### Generating TLC interface API.
### NI VeriStand 2016.0.0.72 (2016) Modifying source file OL2015Model.c
### NI VeriStand 2016.0.0.72 (2016) Modifying source file OL2015Model_data.c
### NI VeriStand 2016.0.0.72 (2016) Writing header file ni_pglobals.h
### NI VeriStand 2016.0.0.72 (2016) Modifying header file OL2015Model.h
### NI VeriStand 2016.0.0.72 (2016) Generating Ports Readme file
### NI VeriStand 2016.0.0.72 (2016) Generating Signals Readme file
### NI VeriStand 2016.0.0.72 (2016) Generating Parameters Readme file
### NI VeriStand 2016.0.0.72 (2016) Copying support files
        1 file(s) copied.
        1 file(s) copied.
        1 file(s) copied.
### VeriStand 2016.0.0.72 (2016) code generation done
### VeriStand 2016.0.0.72 (2016) code compilation started
.
### Processing Template Makefile: C:\VeriStand\2016\ModelInterface\tmw\target\NIVeriStand_vc.tmf
[Warning: VeriStand: You selected an unsupported compiler. Attempting to locate a supported installation of the Microsoft Visual Studio C++ tool chain.
]
VeriStand: Using the Microsoft Visual C++ 10.0 tools.
### OL2015Model.mk which is generated from C:\VeriStand\2016\ModelInterface\tmw\target\NIVeriStand_vc.tmf is up to date
### Building OL2015Model: .\OL2015Model_vc.bat
 
E:\[...]\OL2015Model_niVeriStand_rtw>set MATLAB=C:\Program Files\MATLAB\R2015b  
 
E:\[...]\OL2015Model_niVeriStand_rtw>set VCINSTALLDIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\  
 
E:\[...]\OL2015Model_niVeriStand_rtw>call "C:\VeriStand\2016\ModelInterface\tmw\toolchain\nivs_vcvars32_100.bat"  
Setting environment for using Microsoft Visual C++ 10 x86 tools. 
--- 
ERROR: The Windows Headers and Libraries are not installed. 
Confirm support for the Microsoft Visual C++ compiler is properly installed. Visit www.ni.com/info and enter the Info Code ex3efp for a list of supported compiler configurations. 
 
E:\[...]\OL2015Model_niVeriStand_rtw>echo The make command returned an error of 1  
The make command returned an error of 1 
 
E:\[...]\OL2015Model_niVeriStand_rtw>An_error_occurred_during_the_call_to_make 
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, 
operable program or batch file.
### Aborted due to an error in the build procedure for model: OL2015Mode

 

0 Kudos
Message 3 of 4
(4,564 Views)

Hi,

 

Did you solve your problem ?

Please help Smiley Embarassed !!!

 

Brice

0 Kudos
Message 4 of 4
(3,878 Views)