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

后端 未结 2 1962
一向
一向 2021-02-18 21:58

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: ca         


        
相关标签:
2条回答
  • 2021-02-18 22:49

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

    0 讨论(0)
  • 2021-02-18 22:55

    As mentioned by lucasg

    sudo apt-get install libtinfo-dev 
    

    solved the same problem for me.

    0 讨论(0)
提交回复
热议问题