I'm trying to do the steps as mentioned in Install pdcurses on Visual Studio 2017, which tells me to boot up the Developer Command Prompt for my VS(2019), and write
set PDCURSES_SRCDIR=D:\PDCurses-3.9\PDCurses-3.9(my path for PDCurses)
but I was stuck at step 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.
What I then typed into my command prompt:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>nmake -f Makefile.vc
What I received:
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.
I'm really confused as to why this is happening. I've been trying to search and only found these:
https://github.com/blackrosezy/build-libcurl-windows/issues/19
How to download, build and include PDCurses in Visual Studio 2019 for C++ on Windows (wants me to input the commands in the Native Tools Command Prompt, not the Developer Command Prompt. Any difference?)
both links mention a .bat file. Where do I find this file?
Thanks to anyone who can help!
*: modified from original source for updating purposes
This is running
nmake
in the wrong directory, causing thefile 'Makefile.vc' not found
error.The
nmake
command must be run in "the directory ofPDCurses/wincon
" as mentioned in a previous step. AssumingPDCURSES_SRCDIR
has been set already, this can be done with acd
beforenmake
.