1 scripts/kconfig/mconf.c: In function ‘exec_conf’: 2 scripts/kconfig/mconf.c:481:2: warning: ignoring return value of ‘pipe’, declared with attribute warn_unused_result [-Wunused-result] 3 pipe(pipefd); 4 ^ 5 SHIPPED scripts/kconfig/zconf.tab.c 6 SHIPPED scripts/kconfig/lex.zconf.c 7 SHIPPED scripts/kconfig/zconf.hash.c 8 HOSTCC scripts/kconfig/zconf.tab.o 9 HOSTLD scripts/kconfig/mconf 10 HOSTCC scripts/kconfig/lxdialog/checklist.o 11 In file included from scripts/kconfig/lxdialog/checklist.c:24:0: 12 scripts/kconfig/lxdialog/dialog.h:31:20: fatal error: curses.h: No such file or directory 13 #include CURSES_LOC 14 ^ 15 compilation terminated. 16 scripts/Makefile.host:120: recipe for target 'scripts/kconfig/lxdialog/checklist.o' failed 17 make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1 18 /home/licg/linux_shared/tools/busybox-1.24.1/scripts/kconfig/Makefile:14: recipe for target 'menuconfig' failed 19 make[1]: *** [menuconfig] Error 2 20 Makefile:443: recipe for target 'menuconfig' failed 21 make: *** [menuconfig] Error 2
原因:出现该错误的原因是在使用menuconfig时,需要ncurses库的支持。
解决办法:sudo apt-get install libncurses5-dev libncursesw5-dev
详细参考: