-
Notifications
You must be signed in to change notification settings - Fork 49
Open
Description
Running the compile line in README fails by missing curses.h file.
# ./autogen.sh && ./configure && make
...
config.status: creating config.h
gcc -DHAVE_CONFIG_H -g -O2 -c hexedit.c
In file included from hexedit.c:17:
hexedit.h:16:10: fatal error: curses.h: No such file or directory
16 | #include <curses.h>
| ^~~~~~~~~~
compilation terminated.
make: *** [Makefile:31: hexedit.o] Error 1But I already have curses.h:
# find /c/msys64/mingw64/ -iname "curses.h"
/c/msys64/mingw64/include/ncurses/curses.h
/c/msys64/mingw64/include/ncursesw/curses.h- Issue possibly related to Configure script doesn't error-out when (n)curses isn't found #17
Activity
eabase commentedon Oct 18, 2025
I managed to get original hexedit to compile under MSYS, but not under MINGW64, without minor patching. See raised MinGW64 package request.
Some AI told me:
So I tried on MSYS, and it worked.
I also managed to get it to compile and run for
MINGW64.But you need to apply the following patches, created by
git diff display.c interact.c:However, the
--colorswitch produces no color in MINGW64.Also, the binaries are not compatible, and need to be compiled for each environment.
(I'm not sure how to make them environment agnostic.)
eabase commentedon Oct 18, 2025
The build commands for MSYS and MINGW64 are:
prigaux commentedon Oct 18, 2025
I have pushed two cleanup commits that should help, can you try?