Я пытаюсь кросс-компилировать текстовый редактор NANO для ARM. Я использую Ubuntu и использую набор инструментов arm-linux-gnueabi.
Я установил arm-linux-gnueabi с sudo apt-get install gcc-arm-linux-gnueabi
. Затем я скачал и распаковал исходники nano 2.26 из архивов GNU. После этого я побежал ./configure
. Вот полный синтаксис:
./configure --host=arm-linux-gnueabi --prefix=/usr
Все было хорошо, кроме этой части:
...
checking ncurses.h usability... yes
checking ncurses.h presence... yes
checking for ncurses.h... yes
checking for get_wch in -lncursesw... no
checking for initscr in -lncurses... no
checking curses.h usability... yes
checking curses.h presence... yes
checking for curses.h... yes
checking for get_wch in -lcurses... no
checking for initscr in -lcurses... no
configure: WARNING:
*** No curses lib available. Consider getting the official ncurses
*** distribution from ftp://ftp.gnu.org/pub/gnu/ncurses if you get
*** errors compiling nano.
Для меня это не имеет смысла, так как я уже устанавливал libncurses5-dev
и libncursesw5-dev
(через apt-get) раньше, поэтому я проигнорировал это и запустил make.
Он выдал кучу ошибок о неопределенных ссылках. Вот часть:
...
arm-linux-gnueabi-gcc -g -O2 -o nano browser.o chars.o color.o cut.o files.o global.o help.o move.o nano.o prompt.o rcfile.o search.o text.o utils.o winio.o
...
winio.o: In function `edit_draw':
/home/red/nano-2.2.6/src/winio.c:2486: undefined reference to `wmove'
/home/red/nano-2.2.6/src/winio.c:2486: undefined reference to `waddnstr'
/home/red/nano-2.2.6/src/winio.c:2517: undefined reference to `wattr_on'
/home/red/nano-2.2.6/src/winio.c:2735: undefined reference to `wmove'
/home/red/nano-2.2.6/src/winio.c:2735: undefined reference to `waddnstr'
/home/red/nano-2.2.6/src/winio.c:2749: undefined reference to `wattr_off'
/home/red/nano-2.2.6/src/winio.c:2750: undefined reference to `wattr_off'
/home/red/nano-2.2.6/src/winio.c:2818: undefined reference to `wattr_on'
/home/red/nano-2.2.6/src/winio.c:2819: undefined reference to `wmove'
/home/red/nano-2.2.6/src/winio.c:2819: undefined reference to `waddnstr'
/home/red/nano-2.2.6/src/winio.c:2821: undefined reference to `wattr_off'
/home/red/nano-2.2.6/src/winio.c:2516: undefined reference to `wattr_on'
/home/red/nano-2.2.6/src/winio.c:2715: undefined reference to `wmove'
/home/red/nano-2.2.6/src/winio.c:2715: undefined reference to `waddnstr'
/home/red/nano-2.2.6/src/winio.c:2562: undefined reference to `wmove'
/home/red/nano-2.2.6/src/winio.c:2562: undefined reference to `waddnstr'
/home/red/nano-2.2.6/src/winio.c:2591: undefined reference to `wmove'
/home/red/nano-2.2.6/src/winio.c:2591: undefined reference to `waddnstr'
/home/red/nano-2.2.6/src/winio.c:2597: undefined reference to `wmove'
/home/red/nano-2.2.6/src/winio.c:2597: undefined reference to `waddnstr'
/home/red/nano-2.2.6/src/winio.c:2672: undefined reference to `wmove'
/home/red/nano-2.2.6/src/winio.c:2672: undefined reference to `waddnstr'
/home/red/nano-2.2.6/src/winio.c:2670: undefined reference to `COLS'
...
И это продолжается и продолжается в том же духе. В чем может быть причина/как исправить? Любая помощь приветствуется.