make menuconfig的时候出现一大堆未定义的错误

kernel$ make menuconfig
  HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf.o:在函数‘show_help’中:
mconf.c:(.text+0x914):对‘stdscr’未定义的引用
scripts/kconfig/lxdialog/checklist.o:在函数‘print_arrows’中:
checklist.c:(.text+0x2c):对‘wmove’未定义的引用
checklist.c:(.text+0x4c):对‘acs_map’未定义的引用
checklist.c:(.text+0x54):对‘waddch’未定义的引用
checklist.c:(.text+0x66):对‘waddnstr’未定义的引用
checklist.c:(.text+0x76):对‘wmove’未定义的引用
checklist.c:(.text+0x9f):对‘acs_map’未定义的引用
checklist.c:(.text+0xa7):对‘waddch’未定义的引用
checklist.c:(.text+0xe3):对‘acs_map’未定义的引用

.......................................

.......................................

.......................................
scripts/kconfig/lxdialog/menubox.o:在函数‘do_scroll’中:
menubox.c:(.text+0x38):对‘wrefresh’未定义的引用
scripts/kconfig/lxdialog/menubox.o:在函数‘do_print_item’中:
menubox.c:(.text+0x17e):对‘wrefresh’未定义的引用
scripts/kconfig/lxdialog/menubox.o:在函数‘print_buttons’中:
menubox.c:(.text+0x2b8):对‘wrefresh’未定义的引用
scripts/kconfig/lxdialog/menubox.o:在函数‘print_arrows.constprop.0’中:
menubox.c:(.text+0x3c3):对‘wrefresh’未定义的引用
collect2: error: ld returned 1 exit status
scripts/Makefile.host:100: recipe for target 'scripts/kconfig/mconf' failed
make[1]: *** [scripts/kconfig/mconf] Error 1
Makefile:541: recipe for target 'menuconfig' failed
make: *** [menuconfig] Error 2


这是缺少了ncurse库.


终端运行   

sudo apt-get install libncursesw5-dev


然后 在执行make XXXXX_defconfig  (此处是否必要,不太确定)

再执行make menuconfig 就可以显示了.(终端的窗口不能太小,否则还是显示不了)

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值