12-21-2016 09:47 AM
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?
12-21-2016 12:35 PM - edited 12-21-2016 12:36 PM
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:
12-22-2016 08:01 AM - edited 12-22-2016 08:16 AM
I'm on Windows 7 SP1, Simulink r2015b (8.6) 64 bit.
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
01-25-2018 03:42 AM
Hi,
Did you solve your problem ?
Please help !!!
Brice