Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails on systems with libtinfo separate from libncurses #18

Closed
steils opened this issue Feb 11, 2019 · 2 comments
Closed

Build fails on systems with libtinfo separate from libncurses #18

steils opened this issue Feb 11, 2019 · 2 comments

Comments

@steils
Copy link
Contributor

steils commented Feb 11, 2019

[100%] Linking CXX executable umoria/umoria
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: CMakeFiles/umoria.dir/src/ui_io.cpp.o: undefined reference to symbol 'keypad'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: /lib64/libtinfo.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[2]: *** [CMakeFiles/umoria.dir/build.make:836: umoria/umoria] Error 1
make[1]: *** [CMakeFiles/Makefile2:73: CMakeFiles/umoria.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

See also: https://bugs.gentoo.org/677672

@steils
Copy link
Contributor Author

steils commented Feb 11, 2019

CMake looks for tinfo only if CURSES_USE_NCURSES is true. So set(CURSES_USE_NCURSES TRUE) should fix it. Anyway ncurses is needed.

mrcook added a commit that referenced this issue Feb 11, 2019
Find NCurses library on Linux/Mac (#18)
@mrcook mrcook closed this as completed Feb 11, 2019
@xgqt
Copy link

xgqt commented Mar 20, 2021

thx for being the only answer to the same problem I had ;D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants