MATLAB Answers

Info

This question is closed. Reopen it to edit or answer.

NMAKE : fatal error U1052: D:\Program​\rtw\c\too​ls\vctools​.mak' not found

13 views (last 30 days)
guang liu
guang liu on 16 Jan 2021
Closed: Stephen Cobeldick on 16 Jan 2021
This question was flagged by 2 contributors
Hi, guys:
I met some troubles when I compile the model as dll files, the background is that I am working with 2018b, and SDK7.1, I need compile the dll files for the NI Veristand 2019 to use, here is the error details:
### Generating code into build folder: C:\Users\lenovo\Documents\MATLAB\untitled_niVeriStand_rtw
### VeriStand 2019.0.0.0 (2019) code generation started
### Invoking Target Language Compiler on untitled.rtw
### Using System Target File: D:\VeriStand\2019\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 untitled_types.h
.
### Writing header file untitled.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 source file untitled.cpp
### Writing header file untitled_private.h
.
### Writing header file rtmodel.h
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.cpp
### Writing header file rt_defines.h
### Writing header file rtGetInf.h
### Writing source file rtGetInf.cpp
.
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.cpp
### TLC code generation complete.
### Generating TLC interface API.
.
### VeriStand 2019.0.0.0 (2019) Modifying source file untitled.cpp
.
### VeriStand 2019.0.0.0 (2019) Generating Ports Readme file
### VeriStand 2019.0.0.0 (2019) Generating Signals Readme file
### VeriStand 2019.0.0.0 (2019) Generating Parameters Readme file
### VeriStand 2019.0.0.0 (2019) Copying support files
### VeriStand 2019.0.0.0 (2019) code generation done
### VeriStand 2019.0.0.0 (2019) code compilation started
.
### Processing Template Makefile: D:\VeriStand\2019\ModelInterface\tmw\target\NIVeriStand_vc.tmf
VeriStand: Using the Microsoft Visual C++ 10.0 tools.
### untitled.mk which is generated from D:\VeriStand\2019\ModelInterface\tmw\target\NIVeriStand_vc.tmf is up to date
### Building untitled: .\untitled_vc.bat
C:\Users\lenovo\Documents\MATLAB\untitled_niVeriStand_rtw>set MATLAB=D:\Program Files\MATLAB\R2018b
C:\Users\lenovo\Documents\MATLAB\untitled_niVeriStand_rtw>set VCINSTALLDIR=c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\
C:\Users\lenovo\Documents\MATLAB\untitled_niVeriStand_rtw>call "D:\VeriStand\2019\ModelInterface\tmw\toolchain\nivs_vcvars32_100.bat"
Setting environment for using Microsoft Visual C++ 10 x86 tools.
---
Using Microsoft Windows SDK for Windows 7 (7.1.7600.0.30514)
C:\Users\lenovo\Documents\MATLAB\untitled_niVeriStand_rtw>cd /d C:\Users\lenovo\Documents\MATLAB\untitled_niVeriStand_rtw\
C:\Users\lenovo\Documents\MATLAB\untitled_niVeriStand_rtw>nmake -f untitled.mk MATLAB_ROOT=D:\Program Files\MATLAB\R2018b ALT_MATLAB_ROOT=D:\Program Files\MATLAB\R2018b MATLAB_BIN= ALT_MATLAB_BIN= EXT_MODE=0 EXTMODE_STATIC_ALLOC=0 TMW_EXTMODE_TESTING=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 EXTMODE_TRANSPORT=0 MAT_FILE=1 NIDEBUG=0 NIOPT="Default" OPTS="" COMBINE_OUTPUT_UPDATE_FCNS=0 INCLUDE_MDL_TERMINATE_FCN=1 MULTI_INSTANCE_CODE=0 ISPROTECTINGMODEL=NOTPROTECTING /I
Microsoft (R) Program Maintenance Utility Version 10.00.40219.01
Copyright (C) Microsoft Corporation. All rights reserved.
untitled.mk(139) : fatal error U1052: file 'D:\Program\rtw\c\tools\vctools.mak' not found
Stop.
C:\Users\lenovo\Documents\MATLAB\untitled_niVeriStand_rtw>echo The make command returned an error of 2
The make command returned an error of 2
C:\Users\lenovo\Documents\MATLAB\untitled_niVeriStand_rtw>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
### Aborted due to an error in the build procedure for model: untitled
Error(s) encountered while building "untitled"
Thanks a lot!

  0 Comments

Answers (0)

Community Treasure Hunt

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

Start Hunting!

Translated by