交叉编译ncurses 5.9 for ARM - 找不到lib

时间:2014-08-12 07:52:52

标签: c++ linux ncurses

为了将GNU nano编辑器移植到这个架构中,我试图为ARM交叉编译ncurses 5.9。我使用crosstool-ng构建了我的工具链,并且构建完成没有任何问题。在尝试制作GNU nano时,我收到了一些关于我的工具链中缺少ncurses库的错误消息,确实如此。我已经下载了ncurses 5.9并配置如下:

./configure arm-linux --target=arm-linux --with-shared --prefix=/opt/x-tools/arm-unknown-linux-gnueabi

然后我尝试用以下命令制作ncurses 5.9:

make HOSTCC=gcc CXX=arm-unknown-linux-gnueabi-c++

这部分导致错误:

/opt/x-tools/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/4.3.2/../../../../arm-unknown-linux-gnueabi/bin/ld: cannot find -lform collect2: ld returned 1 exit status

从错误中我认为我错过了一个库或一个标题" form.h"或" form.o"。你能指点我包含这个丢失的lib吗?

主机操作系统是Debian 7.6 i386。

1 个答案:

答案 0 :(得分:0)

我刚刚找到答案here。您只需要添加配置脚本 - without-cxx-binding 开关。您也可以参考this链接,在那里您可以找到详细的ncurses 5.9交叉编译说明。