Link error: “Cannot find -ltinfo” on Ubuntu 12.04 on a 32-bit arm processor

谁都会走 提交于 2019-12-10 01:27:02

问题


I get the following link error when I'm compiling a small function using ncurses for an Ubuntu 12.04 running on arm. The error is

arm-linux-gnueabihf/bin/ld: cannot find -ltinfo

A lot of hints are floating around on what to install, but I can't seem to find any packages that does the trick for my arm box.

I have done

sudo apt-get install libncurses5-dev

And this does not contain the tinfo library. Other suggestions usually result in the library is "not available but referred by another package" or "has no installation candidate".

All help is appreciated

/Henrik


回答1:


As mentioned by lucasg

sudo apt-get install libtinfo-dev 

solved the same problem for me.




回答2:


When you cross compile the nurses library, configure this option --with-termlib. It shall install libtinfo into your target location.



来源:https://stackoverflow.com/questions/21137879/link-error-cannot-find-ltinfo-on-ubuntu-12-04-on-a-32-bit-arm-processor

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