dankamongmen / notcurses

blingful character graphics/TUI library. definitely not curses.
https://nick-black.com/dankwiki/index.php/Notcurses
Other
3.43k stars 113 forks source link

None of the required 'tinfo>=6.1;ncursesw>=6.1' found #2686

Closed phpmooc closed 7 months ago

phpmooc commented 1 year ago

Environment:

compile from source code by issuing the command cmake ../ -DUSE_GPM=on -DUSE_QRCODEGEN=on -DBUILD_TESTING=off -DUSE_DOCTEST=off -DUSE_MULTIMEDIA=none, then throw errors as below:

-- Checking for one of the modules 'tinfo>=6.1;ncursesw>=6.1'
CMake Error at /usr/local/share/cmake-3.23/Modules/FindPkgConfig.cmake:890 (message):
  None of the required 'tinfo>=6.1;ncursesw>=6.1' found
Call Stack (most recent call first):
  CMakeLists.txt:104 (pkg_search_module)

Besides, I have built and installed the latest ncurses library with version 6.3, and I have did lots of google search for tinfo, but no any clues found, so how to install tinfo with version required? and I found the library file 【/usr/lib/libncursesw.so.6.3】already exists, so why it still report that ncursesw >= 6.1 ? any help will be appreciated.

kuanghl commented 7 months ago

Just find tinfo.pc/ncursesw.pc file path, then export the environment variables, it can work normally. export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconfig/

dankamongmen commented 7 months ago

yep, @kuanghl is correct; you just need to ensure PKG_CONFIG_PATH is pointing to wherever the appropriate .pc files are installed.