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

3k views Asked by At

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:

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

1

There are 1 answers

0
dxiv On BEST ANSWER

C:\Program Files (x86)\Microsoft Visual Studio\2019\Community>nmake -f Makefile.vc

This is running nmake in the wrong directory, causing the file 'Makefile.vc' not found error.

The nmake command must be run in "the directory of PDCurses/wincon" as mentioned in a previous step. Assuming PDCURSES_SRCDIR has been set already, this can be done with a cd before 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