我正在尝试执行 Install pdcurses on Visual Studio 2017 中提到的步骤,它告诉我为我的 VS(2019) 启动开发者命令提示符,然后写set PDCURSES_SRCDIR=D:\PDCurses-3.9\PDCurses-3.9(my path for PDCurses)
但我被困在第 2 步:
Navigate in the command window to the directory of PDCurses/wincon*
nmake –f Makefile.vc*
(This is the make file for PDCurses.) It will create the pdcurses.lib for our Visual Studio.
然后我在命令提示符中输入的内容:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>
nmake -f Makefile.vc
我收到了什么:Microsoft (R) Program Maintenance Utility Version 14.20.27508.1
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1052: file 'Makefile.vc' not found
Stop.
我真的很困惑为什么会这样。我一直在尝试搜索,只找到了这些:两个链接都提到了一个 .bat 文件。我在哪里可以找到这个文件?
感谢任何能提供帮助的人!
*:从原始来源修改以用于更新目的
最佳答案
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>nmake -f Makefile.vc
正在运行
nmake
在错误的目录中,导致 file 'Makefile.vc' not found
错误。nmake
命令必须在“PDCurses/wincon
的目录”中运行,如上一步所述。假设 PDCURSES_SRCDIR
已经设置好了,这可以通过 cd
来完成之前 nmake
.C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>cd /d %PDCURSES_SRCDIR%\wincon
D:\PDCurses-3.9\PDCurses-3.9\wincon>nmake -f Makefile.vc
关于c++ - NMAKE : fatal error U1052: file 'Makefile.vc' not found,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64515942/