这两天在官网下了imx287的ltib,但在安装的时候,编译到lkc-1.4的时候,ncurses好像始终找不到,请问下该如何解决?第一次安装ltib,也不晓得理解对不对。
dpkg -l | grep ncurses*
ii lib32ncurses5 5.9+20140118-1ubuntu1 amd64 shared libraries for terminal handling (32-bit)
ii lib32ncurses5-dev 5.9+20140118-1ubuntu1 amd64 developer's libraries for ncurses (32-bit)
ii libncurses5:amd64 5.9+20140118-1ubuntu1 amd64 shared libraries for terminal handling
ii libncurses5:i386 5.9+20140118-1ubuntu1 i386 shared libraries for terminal handling
ii libncurses5-dbg 5.9+20140118-1ubuntu1 amd64 debugging/profiling libraries for ncurses
ii libncurses5-dev:amd64 5.9+20140118-1ubuntu1 amd64 developer's libraries for ncurses
ii libncursesw5:amd64 5.9+20140118-1ubuntu1 amd64 shared libraries for terminal handling (wide character support)
ii libncursesw5-dev:amd64 5.9+20140118-1ubuntu1 amd64 developer's libraries for ncursesw
ii mtr-tiny 0.85-2 amd64 Full screen ncurses traceroute tool
ii ncurses-base 5.9+20140118-1ubuntu1 all basic terminal type definitions
ii ncurses-bin 5.9+20140118-1ubuntu1 amd64 terminal-related programs and man pages
host_config.log里面内容:
cd lxdialog && make
make[1]: Entering directory `/opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4/lxdialog'
gcc -DCURSES_LOC="<ncurses.h>" -I. -c checklist.c -o checklist.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c menubox.c -o menubox.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c textbox.c -o textbox.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c yesno.c -o yesno.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c inputbox.c -o inputbox.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c util.c -o util.o
gcc -DCURSES_LOC="<ncurses.h>" -I. -c msgbox.c -o msgbox.o
ar rc lxdialog.a checklist.o menubox.o textbox.o yesno.o inputbox.o util.o msgbox.o
ranlib lxdialog.a
make[1]: Leaving directory `/opt/freescale/ltib/usr/src/rpm/BUILD/lkc-1.4/lxdialog'
gcc -lncurses mconf.o zconf.tab.o lxdialog/lxdialog.a -o mconf
lxdialog/lxdialog.a(checklist.o): In function `print_item':
checklist.c:(.text+0x42): undefined reference to `wmove'
checklist.c:(.text+0x5c): undefined reference to `waddch'
checklist.c:(.text+0x82): undefined reference to `wmove'
checklist.c:(.text+0xdc): undefined reference to `wprintw'
checklist.c:(.text+0x108): undefined reference to `wprintw'
checklist.c:(.text+0x144): undefined reference to `wmove'
checklist.c:(.text+0x163): undefined reference to `waddch'
checklist.c:(.text+0x1a4): undefined reference to `waddnstr'
checklist.c:(.text+0x1c4): undefined reference to `wmove'
checklist.c:(.text+0x1d0): undefined reference to `wrefresh'
lxdialog/lxdialog.a(checklist.o): In function `print_arrows':
checklist.c:(.text+0x203): undefined reference to `wmove'
checklist.c:(.text+0x226): undefined reference to `acs_map'
checklist.c:(.text+0x235): undefined reference to `waddch'
checklist.c:(.text+0x24b): undefined reference to `waddnstr'
checklist.c:(.text+0x26a): undefined reference to `acs_map'
checklist.c:(.text+0x279): undefined reference to `waddch'
checklist.c:(.text+0x280): undefined reference to `acs_map'
checklist.c:(.text+0x28f): undefined reference to `waddch'
checklist.c:(.text+0x296): undefined reference to `acs_map'
checklist.c:(.text+0x2a5): undefined reference to `waddch'
checklist.c:(.text+0x2ac): undefined reference to `acs_map'
.......
util.c:(.text+0xad0): undefined reference to `winch'
util.c:(.text+0xae2): undefined reference to `waddch'
util.c:(.text+0xaee): undefined reference to `winch'
util.c:(.text+0xb00): undefined reference to `waddch'
util.c:(.text+0xb20): undefined reference to `wnoutrefresh'
collect2: error: ld returned 1 exit status
make: *** [mconf] Error 1
error: Bad exit status from /home/sanway/imx287/L2.6.35_1.1.0_130130_source/yes/ltib/tmp/rpm-tmp.27201 (%build)
RPM build errors:
Bad exit status from /home/sanway/imx287/L2.6.35_1.1.0_130130_source/yes/ltib/tmp/rpm-tmp.27201 (%build)
Build time for lkc: 1 seconds
Failed building lkc
Died at ./ltib line 1392.
traceback:
main::build_host_rpms:1392
main::host_checks:1447
main:554
Started: Sat May 21 14:41:57 2016
Ended: Sat May 21 14:41:58 2016
Elapsed: 1 seconds
These packages failed to build:
lkc
Build Failed
|