user1675016
user1675016

Reputation: 176

Error Installing PDCurses (from PDCursesMod) for wincon: The system cannot find the file specified

I am trying to install PDCurses (from https://github.com/Bill-Gray/PDCursesMod) on my Windows 10 laptop, and although I believe I am following the instructions I am having no luck.

My steps: Open Terminal and cd to the wincon directory: C:\Users\myuser\Documents\etc\PDCursesMod-master\wincon

Run command: make -f Makefile WIDE=Y

Results:

i686-w64-mingw32-gcc -c -Wall -Wextra -pedantic -O3 -I.. -DPDC_WIDE ../pdcurses/addch.c
process_begin: CreateProcess(NULL, i686-w64-mingw32-gcc -c -Wall -Wextra -pedantic -O3 -I.. -DPDC_WIDE ../pdcurses/addch.c, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [Makefile:161: addch.o] Error 2

earlier it was not even mentioning addch.o (just addch.c), but now this is what I consistently get. And I checked, my folder for C:\Users\myuser\Documents\etc\PDCursesMod-master\pdcurses has addch.c. Based on the i686-w64-mingw-gcc I am wondering if it even recognizes my that I am on a Windows machine. I do have gcc, I confirmed by running g++ --version and I get:

g++.exe (Rev1, Built by MSYS2 project) 12.2.0
Copyright (C) 2022 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

I tried 'mingw32-make -f Makefile.mng WIDE=Y' following the tips from Command "make" (used for making makefiles) cannot find the path specified but that too was to no avail.

I would ultimately like to use pdcurses for some c++ programming. Where am I going wrong?

Update: I added make for msys following Is make no longer included with MinGW and/or MSYS? and typed pacman -S make into the MSYS terminal. Now I get:

i686-w64-mingw32-gcc -c -Wall -Wextra -pedantic -O3 -I.. -DPDC_WIDE ../pdcurses/addch.c
make: i686-w64-mingw32-gcc: No such file or directory
make: *** [Makefile:161: addch.o] Error 127

Upvotes: 0

Views: 34

Answers (1)

user1675016
user1675016

Reputation: 176

I commented out all of the logic in the makefile for Not-Windows:

#ifndef ON_WINDOWS
#   PREFIX  = i686-w64-mingw32-
#   ifdef _w64
#       PREFIX  = x86_64-w64-mingw32-
#   endif
#   ifdef _a64
#       PREFIX  = aarch64-w64-mingw32-
#   endif
#endif

and

#ifdef ON_WINDOWS
    config_curses$(E) -v -d.. $(CFLAGS)
#else
#   wine config_curses$(E) -v -d.. $(CFLAGS)
#endif
#   rm config_curses$(E)

It seems my uname started with MSYS_NT and not like MINGW, as expected. Then I followed Giorgos's instructions on How do I install PDCurses in Windows for use with C++? for step 2 and after. PDCursor got built and the hello-world is compiling and running. May no one else have to deal with this

Upvotes: 0

Related Questions