LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   on macos 10.15, configure script can't find ncurses menu library (https://www.linuxquestions.org/questions/programming-9/on-macos-10-15-configure-script-can%27t-find-ncurses-menu-library-4175695096/)

Andy Alt 05-13-2021 04:05 PM

on macos 10.15, configure script can't find ncurses menu library
 
I don't have direct access to a macOS computer, but I'm trying to set up a program for testing on macos through a GitHub actions server. Trying to do it without brew because ncurses is supposed to be already installed. But the configure script can't find the menu library, and I don't know the locations of things on a Mac. I might be able to get it working by preceding the config script PKG_CONFIG_PATH or LDFLAGS, but I don't know what values I should try. Searching for the answer is yielding surprising few results.

Quote:

checking for ncursesw via pkg-config... yes
checking for working ncursesw/curses.h... no
checking for working ncursesw.h... no
checking for working ncurses.h... yes
checking for Curses Menu library with ncursesw/menu.h... no
checking for free_menu in -lmenu... no
configure: error: requires the Curses menu library.

Andy Alt 05-13-2021 04:24 PM

Ah, found out that the ncurses shipped with macOS doesn't come with the menu library.

So using 'brew install ncurses' and using 'PKG_CONFIG_PATH="/usr/local/opt/ncurses/lib/pkgconfig" ./configure' seems like the best option.


All times are GMT -5. The time now is 08:50 AM.