Hi. I'm trying to compile the GNU software NCurses on MSYS2 MinGW-w64 (x86_64) but when compilling by running
I was unable to find a working solution, I know it's possible to compile NCurses on MSYS2 MinGW-w64 because annother person did it (https://stackoverflow.com/questions/66063363) but his solution didn't worked and gave the same error (I did
I know this is Linux forum, not Windows forum, but since MinGW is actually using BASH like Linux and it's a GNU software well-used on Linux, I think it's OK to ask this on a Linux forum...
./configure && make && make install
it stops at the make
command with the error:
Code:
gcc ../objects/tic.o ../objects/dump_entry.o ../objects/tparm_type.o ../objects/transform.o -L../lib -DHAVE_CONFIG_H -I../progs -I. -I../include -I/mingw64/include/ncurses -DNCURSES_STATIC -D_FILE_OFFSET_BITS=64 -DNDEBUG -DWINVER=0x0501 -DWIN32_LEAN_AND_MEAN -lncurses -L/mingw64/bin -static --param max-inline-insns-single=1200 -DNCURSES_STATIC -L../lib -static -lncurses -lncurses -dynamic -o tic.exe
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../lib\libncurses.a(lib_ttyflags.o):lib_ttyflags.c:(.text+0x76): undefined reference to `_nc_mingw_tcgetattr'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: ../lib\libncurses.a(lib_ttyflags.o):lib_ttyflags.c:(.text+0x181): undefined reference to `_nc_mingw_tcsetattr'
collect2.exe: error: ld returned 1 exit status
make[1]: *** [Makefile:262: tic.exe] Error 1
make[1] : we quit the directory « /home/[username]/ncurses-6.4/progs »
make: *** [Makefile:136: all] Error 2
pacman -Syuu mingw-w64-x86_64-toolchain && export CFLAGS="-I/mingw64/include/ncurses -lncurses -L/mingw64/bin -DNCURSES_STATIC -static" && export CXXFLAGS=$CFLAGS && ./configure && make && make install
, maybe I did something wrong here...).I know this is Linux forum, not Windows forum, but since MinGW is actually using BASH like Linux and it's a GNU software well-used on Linux, I think it's OK to ask this on a Linux forum...