linux 编译内核 选项出错 综合

具体错误提示见最后面

1.make menuconfig
解决方法:sudo apt-get install libncurses5-dev(ubuntu)其他的发行版找到对应的包就好
2.make xconfig
解决办法 :sudo apt-get install libqt3-mt-dev
3. make gconfig
解决办法: apt-get install libglade2-dev

make menuconfig出错:
$ make menuconfig
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/kconfig/conf.o
HOSTCC scripts/kconfig/kxgettext.o
HOSTCC scripts/kconfig/lxdialog/checklist.o
在包含自 scripts/kconfig/lxdialog/checklist.c:24 的文件中:
scripts/kconfig/lxdialog/dialog.h:32:20: 错误: curses.h:没有该文件或目录
In file included from scripts/kconfig/lxdialog/checklist.c:24:
scripts/kconfig/lxdialog/dialog.h:97: 错误: expected specifier-qualifier-list before ‘chtype’
scripts/kconfig/lxdialog/dialog.h:187: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:194: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:196: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:197: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:198: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:199: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/dialog.h:201: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:31: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:59: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c:95: 错误: expected ‘)’ before ‘*’ token
scripts/kconfig/lxdialog/checklist.c: 在函数‘dialog_checklist’中:
scripts/kconfig/lxdialog/checklist.c:116: 错误: ‘WINDOW’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:116: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
scripts/kconfig/lxdialog/checklist.c:116: 错误: 所在的函数内也只报告一次。)
scripts/kconfig/lxdialog/checklist.c:116: 错误: ‘dialog’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:116: 错误: ‘list’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:116: 警告: 逗号表达式的左操作数不起作用
scripts/kconfig/lxdialog/checklist.c:129: 警告: 隐式声明函数‘getmaxy’
scripts/kconfig/lxdialog/checklist.c:129: 错误: ‘stdscr’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:130: 错误: ‘KEY_MAX’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:131: 警告: 隐式声明函数‘getmaxx’
scripts/kconfig/lxdialog/checklist.c:137: 错误: ‘COLS’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:138: 错误: ‘LINES’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:140: 警告: 隐式声明函数‘draw_shadow’
scripts/kconfig/lxdialog/checklist.c:142: 警告: 隐式声明函数‘newwin’
scripts/kconfig/lxdialog/checklist.c:143: 警告: 隐式声明函数‘keypad’
scripts/kconfig/lxdialog/checklist.c:143: 错误: ‘TRUE’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:145: 警告: 隐式声明函数‘draw_box’
scripts/kconfig/lxdialog/checklist.c:146: 错误: ‘struct dialog_color’没有名为‘atr’的成员
scripts/kconfig/lxdialog/checklist.c:146: 错误: ‘struct dialog_color’没有名为‘atr’的成员
scripts/kconfig/lxdialog/checklist.c:147: 警告: 隐式声明函数‘wattrset’
scripts/kconfig/lxdialog/checklist.c:147: 错误: ‘struct dialog_color’没有名为‘atr’的成员
scripts/kconfig/lxdialog/checklist.c:148: 警告: 隐式声明函数‘mvwaddch’
scripts/kconfig/lxdialog/checklist.c:150: 警告: 隐式声明函数‘waddch’
scripts/kconfig/lxdialog/checklist.c:151: 错误: ‘struct dialog_color’没有名为‘atr’的成员
scripts/kconfig/lxdialog/checklist.c:154: 警告: 隐式声明函数‘print_title’
scripts/kconfig/lxdialog/checklist.c:156: 错误: ‘struct dialog_color’没有名为‘atr’的成员
scripts/kconfig/lxdialog/checklist.c:157: 警告: 隐式声明函数‘print_autowrap’
scripts/kconfig/lxdialog/checklist.c:164: 警告: 隐式声明函数‘subwin’
scripts/kconfig/lxdialog/checklist.c:171: 错误: ‘struct dialog_color’没有名为‘atr’的成员
scripts/kconfig/lxdialog/checklist.c:171: 错误: ‘struct dialog_color’没有名为‘atr’的成员
scripts/kconfig/lxdialog/checklist.c:189: 警告: 隐式声明函数‘print_item’
scripts/kconfig/lxdialog/checklist.c:192: 警告: 隐式声明函数‘print_arrows’
scripts/kconfig/lxdialog/checklist.c:195: 警告: 隐式声明函数‘print_buttons’
scripts/kconfig/lxdialog/checklist.c:197: 警告: 隐式声明函数‘wnoutrefresh’
scripts/kconfig/lxdialog/checklist.c:199: 警告: 隐式声明函数‘doupdate’
scripts/kconfig/lxdialog/checklist.c:202: 警告: 隐式声明函数‘wgetch’
scripts/kconfig/lxdialog/checklist.c:210: 错误: ‘KEY_UP’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:210: 错误: ‘KEY_DOWN’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:220: 错误: ‘FALSE’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:221: 警告: 隐式声明函数‘scrollok’
scripts/kconfig/lxdialog/checklist.c:222: 警告: 隐式声明函数‘wscrl’
scripts/kconfig/lxdialog/checklist.c:232: 警告: 隐式声明函数‘wrefresh’
scripts/kconfig/lxdialog/checklist.c:293: 警告: 隐式声明函数‘delwin’
scripts/kconfig/lxdialog/checklist.c:297: 错误: ‘KEY_LEFT’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:298: 错误: ‘KEY_RIGHT’未声明 (在此函数内第一次使用)
scripts/kconfig/lxdialog/checklist.c:310: 警告: 隐式声明函数‘on_key_esc’
scripts/kconfig/lxdialog/checklist.c:312: 错误: ‘KEY_RESIZE’未声明 (在此函数内第一次使用)
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] 错误 1
make: *** [menuconfig] 错误 2

make xconfig 出错的:
# make xconfig
CHECK   qt
*
* Unable to find the QT installation. Please make sure that
* the QT development package is correctly installed and
* either install pkg-config or set the QTDIR environment
* variable to the correct location.
*
HOSTCC scripts/kconfig/kconfig_load.o
make[1]: *** 没有规则可以创建“scripts/kconfig/qconf.o”需要的目标“scripts/kconfig/.tmp_qtcheck”。 停止。

make gconfig 出错:
root@cf-laptop:/home/cf/dev/embbed/embedded-xmu/linux-2.6.20.1-xmu-2009# make xconfig
CHECK   qt
/usr/bin/moc -i scripts/kconfig/qconf.h -o scripts/kconfig/qconf.moc
HOSTCXX scripts/kconfig/qconf.o
HOSTLD scripts/kconfig/qconf
scripts/kconfig/qconf arch/arm/Kconfig
root@cf-laptop:/home/cf/dev/embbed/embedded-xmu/linux-2.6.20.1-xmu-2009# make gconfig
*
* Unable to find the GTK+ installation. Please make sure that
* the GTK+ 2.0 development package is correctly installed...
* You need gtk+-2.0, glib-2.0 and libglade-2.0.
*
make[1]: *** 没有规则可以创建“scripts/kconfig/gconf.o”需要的目标“scripts/kconfig/.tmp_gtkcheck”。 停止。
make: *** [gconfig] 错误 2

你可能感兴趣的:(C++,c,linux,C#,qt)