makefilepdcurses

Command "make" (used for making makefiles) cannot find the path specified


Firstly, I'm using Windows 7

I have been trying to install the pdcurses-extended library

found here: https://github.com/Bill-Gray/PDCurses

Which requires to make a makefile (more specifically the wingui/Makefile.mng)

I have downloaded the GNUwin which contains make for windows

found here: http://gnuwin32.sourceforge.net/packages/make.htm

I have moved both folders to the root of C:\ (C:\PDCurses-master and C:\GnuWin32)

I launched the cmd and navigated to the folder where make.exe is located at

cd C:\GnuWin32\bin

Than I used the make command to make the makefile

make -f C:\PDCurses-master\wingui\Makefile.mng WIDE=Y

which failed with the following error

C:\PDCurses-master\wingui\Makefile.mng:14: ../version.mif: No such file or directory
C:\PDCurses-master\wingui\Makefile.mng:15: ../libobjs.mif: No such file or directory
The system cannot find the path specified.
C:\PDCurses-master\wingui\Makefile.mng:171: ../makedist.mif: No such file or directory
make: *** No rule to make target `../makedist.mif'.  Stop.

It seems that files version.mif & libobjs.mif & makedist.mif cannot be found, but when I checked, the files were there (location C:\PDCurses-master)

Does anyone see what I have done wrong. I am open to suggestions and will even use a different make if instructed to.

After trying @StephaneM suggestion, it helped, but that just generated a different error

The system cannot find the path specified.
gcc -c -O4 -Wall -pedantic -I.. -DPDC_WIDE ../pdcurses/addch.c
process_begin: CreateProcess(NULL, gcc -c -O4 -Wall -pedantic -I.. -DPDC_WIDE ../pdcurses/addch.c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [addch.o] Error 2

again, it seems that make cannot find the files addch.c, but the file is there (full directory: C:\PDCurses-master\pdcurses\addch.c)


Solution

  • Just a guess: your current directory is C:\GnuWin32\bin so ../version.mif is equivalent to C:\GnuWin32\version.mif

    Try to launch your make like that:

    cd C:\PDCurses-master\wingui
    C:\GnuWin32\bin\make -f .\Makefile.mng WIDE=Y