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 就可以顯示了.(終端的窗口不能太小,否則還是顯示不了)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章