ncurses program won't run on debian armv7

半城伤御伤魂 提交于 2020-01-06 04:35:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!