Couldn't find ncurses.h, package found by CMake
WSSDude opened this issue · 2 comments
ncurses package was found by CMake without issues. Problem is that it did not include proper directories along with it.
In my environment (MSYS2 64-bit. compiling with MinGW-w64 64-bit compiler on Windows 10), ncurses installed through pacman has its headers under ncurses subfolder and not in root of main include directory of MinGW. This is not properly handled (in my environment at least) and I was forced to modify include in src/imtu-impl-ncurses.cpp@9 to #include <ncurses/ncurses> for it to compile.
Don't know what is proper fix, just throwing this in as a possible solution if someone encounters similar issue.
Thanks, I'll take a look if your solution works on Mac and Linux and will merge.
try this on ubuntu in wsl on windows >>
sudo apt-get install libcurl4-gnutls-dev libncurses5-dev