问题
Can somebody here help me with ncurses for armv7 (x86)? I just want to run on Debian my C++ program uses ncurses It has error "Error opening terminal: xterm."
I used this installation guide: http://soft-dev-pro.blogspot.ru/2014/07/cross-compile-ncurses-for-arm.html
If i type which in console, it shows this: which $TERM /usr/bin/xterm
It seems initscr() function won't start curses mode
回答1:
Your ncurses program is looking for
/usr/arm-linux-gnueabihf/share/terminfo
and not finding that. If you do
export TERMINFO=/usr/share/terminfo
then the program can use that setting to find the system's terminal database.
来源:https://stackoverflow.com/questions/49046806/ncurses-program-wont-run-on-debian-armv7