Cloudef / bemenu

Dynamic menu library and client program inspired by dmenu
GNU General Public License v3.0
1.16k stars 90 forks source link

Can't compile curses version (curses.h not found) #392

Open ZabejAga opened 3 months ago

ZabejAga commented 3 months ago

Following error appears when compiled make clients curses:

cc -g -O2 -Wall -Wextra -Wpedantic -Wformat=2 -Wstrict-aliasing=3 -Wstrict-overflow=5 -Wstack-usage=12500 -Wcast-align -Wpointer-arith -Wchar-subscripts -Warray-bounds=2 -Wno-unknown-warning-option  -std=c99 -fvisibility=hidden -D_FORTIFY_SOURCE=2 -DBM_VERSION=\"0.6.21\" -DBM_PLUGIN_VERSION=\"0.6.21-d58c9dc3650ed4b265724bdff281301e9912001d\" -DINSTALL_LIBDIR=\"/usr/local/lib\" -D_DEFAULT_SOURCE -Ilib    -shared -fPIC lib/renderers/curses/curses.c util.a  -lm -L. -lbemenu -o bemenu-renderer-curses.so
lib/renderers/curses/curses.c:14:10: fatal error: curses.h: No such file or directory
   14 | #include <curses.h>
      |          ^~~~~~~~~~
compilation terminated.
make: *** [GNUmakefile:57: bemenu-renderer-curses.so] Error 1

ubuntu 22.04 wsl2

Cloudef commented 3 months ago

Do you have libncurses5-dev? https://packages.ubuntu.com/search?suite=xenial&arch=any&mode=exactfilename&searchon=contents&keywords=curses.h