ggerganov / imtui

ImTui: Immediate Mode Text-based User Interface C++ Library
https://imtui.ggerganov.com
MIT License
2.94k stars 123 forks source link

Couldn't find ncurses.h, package found by CMake #1

Closed WSSDude closed 4 years ago

WSSDude commented 4 years ago

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.

ggerganov commented 4 years ago

Thanks, I'll take a look if your solution works on Mac and Linux and will merge.

GautamDMan commented 4 years ago

try this on ubuntu in wsl on windows >>

sudo apt-get install libcurl4-gnutls-dev libncurses5-dev