zoukankan      html  css  js  c++  java
  • Ubuntu和Busybox下用make menuconfig配置出错解决

    http://blog.csdn.net/satiling/article/details/6965985

    # make menuconfig

    In file included from scripts/kconfig/lxdialog/checklist.c:24:
    scripts/kconfig/lxdialog/dialog.h:31:20: error: curses.h: 没有那个文件或目录
    In file included from scripts/kconfig/lxdialog/checklist.c:24:

    scripts/kconfig/lxdialog/dialog.h:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_colors’
    scripts/kconfig/lxdialog/dialog.h:129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘use_shadow’
    scripts/kconfig/lxdialog/dialog.h:131: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘attributes’
    scripts/kconfig/lxdialog/dialog.h:143: error: expected ‘)’ before ‘*’ token
    scripts/kconfig/lxdialog/dialog.h:146: error: expected ‘)’ before ‘*’ token
    scripts/kconfig/lxdialog/dialog.h:147: error: expected ‘)’ before ‘*’ token
    scripts/kconfig/lxdialog/dialog.h:148: error: expected ‘)’ before ‘*’ token
    scripts/kconfig/lxdialog/dialog.h:149: error: expected ‘)’ before ‘*’ token
    scripts/kconfig/lxdialog/dialog.h:151: error: expected ‘)’ before ‘*’ token
    scripts/kconfig/lxdialog/checklist.c:31: error: expected ‘)’ before ‘*’ token
    scripts/kconfig/lxdialog/checklist.c:59: error: expected ‘)’ before ‘*’ token
    scripts/kconfig/lxdialog/checklist.c:95: error: expected ‘)’ before ‘*’ token
    scripts/kconfig/lxdialog/checklist.c: In function ‘dialog_checklist’:
    scripts/kconfig/lxdialog/checklist.c:117: error: ‘WINDOW’ undeclared (first use in this function)
    scripts/kconfig/lxdialog/checklist.c:117: error: (Each undeclared identifier is reported only once
    scripts/kconfig/lxdialog/checklist.c:117: error: for each function it appears in.)
    scripts/kconfig/lxdialog/checklist.c:117: error: ‘dialog’ undeclared (first use in this function)
    scripts/kconfig/lxdialog/checklist.c:117: error: ‘list’ undeclared (first use in this function)

    scripts/kconfig/lxdialog/checklist.c:122: error: ‘stderr’ undeclared (first use in this function)
    scripts/kconfig/lxdialog/checklist.c:140: error: ‘COLS’ undeclared (first use in this function)
    scripts/kconfig/lxdialog/checklist.c:141: error: ‘LINES’ undeclared (first use in this function)

    scripts/kconfig/lxdialog/checklist.c:214: error: ‘KEY_UP’ undeclared (first use in this function)
    scripts/kconfig/lxdialog/checklist.c:214: error: ‘KEY_DOWN’ undeclared (first use in this function)

    scripts/kconfig/lxdialog/checklist.c:290: error: ‘KEY_LEFT’ undeclared (first use in this function)
    scripts/kconfig/lxdialog/checklist.c:291: error: ‘KEY_RIGHT’ undeclared (first use in this function)

    make[2]: *** [scripts/kconfig/lxdialog/checklist.o] 错误 1
    make[1]: *** [menuconfig] 错误 2
    make: *** [menuconfig] 错误 2

    ==========================================================

    busybox下make menuconfig后出错和上面差不多

    解决方法,出了问题后很郁闷,在网上搜了许久找到了两种方法

    一种是如果您用的是Ubuntu系统 就安装这个包 sudo apt-get install libncurses5-dev

    装完就好了;

    第二种 如果您用的是rhel系列 就安装这个包 ncurses-devel这个包 就可以了

  • 相关阅读:
    2017-2018-1 20155208 20155212 20155239 实验一 开发环境的熟悉
    2017-2018-1 20155332实验三 实时系统报告
    2017-2018-1 20155332 《信息安全系统设计基础》第九周学习总结
    第9周 实现PWD命令
    2016-2017第一学期 20155332 第八周课堂实践
    2017-2018-1 20155312 《信息安全系统设计基础》第八周学习总结
    20155332实验二 固件编程
    2017-2018-1 20155332 《信息安全系统设计基础》第7周学习总结
    20155332口令破解实验
    2017-2018-1 20155332 《信息安全系统设计基础》第六周学习总结
  • 原文地址:https://www.cnblogs.com/liulipeng/p/3382727.html
Copyright © 2011-2022 走看看