I'm trying to install ncurses to a non system-wide prefix (for cross compilation).
Everything worked fine and I was able to install ncurses to the specified prefix, with the header files residing in <prefix>/include/ncurses
.
A program I'm trying to compile (specifically GHC) doesn't find the headers, because it tries to #include <ncurses.h>
, which doesn't work. (include <ncurses/ncurses.h>
does work though, but GHC doesn't try this.)
So I thought installing the headers to <prefix>/include
directly would do the trick, but I wasn't able to this. Passing --includedir=<prefix>/include
to the configure script of ncurses didn't give the desired result, because the installed ncurses.h then tries to #include <include/ncurses_dll.h>
, which doesn't work.
<prefix>/include
is of course in the search path of the used CPP.