c++ - NMAKE : fatal error U1052: file 'Makefile.vc' not found

标签 c++ visual-studio pdcurses

我正在尝试执行 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.
我真的很困惑为什么会这样。我一直在尝试搜索,只找到了这些:
  • https://github.com/blackrosezy/build-libcurl-windows/issues/19
  • How to download, build and include PDCurses in Visual Studio 2019 for C++ on Windows (要我在 Native Tools 命令提示符中输入命令,而不是在开发者命令提示符中输入命令。有什么区别吗?)

  • 两个链接都提到了一个 .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/

    相关文章:

    c++ - 可以使用 pdcurses 编辑任何 Windows 终端的调色板吗?

    c++ - CRTP - 如何从派生类调用方法的基类实现?

    c++ - 枚举类运算符的实现

    php - 将多个参数从 php 传递到 shell

    sql-server - 如何使用 Visual Studio 的 Git 源代码管理提供程序对 SQL Server 数据库进行版本控制

    c++ - 如何在 QT 应用程序中的嵌入式 Python 中休眠

    c++ - 如何在 Visual Studio 2012 上使用带控制台的 GUI Windows 应用程序?

    c++ - 调试链接错误的最佳实践

    c - getmaxyx() 代码:: block 中的错误