日期:2014-05-16  浏览次数:20869 次

Linux内核中make ARCH=arm menuconfig时出错
Linux内核中make ARCH=arm menuconfig时出错
HOSTLD  scripts/kconfig/mconf
scripts/kconfig/mconf.o: In function `show_help':
mconf.c:(.text+0x7e1): undefined reference to `stdscr'
scripts/kconfig/mconf.o: In function `main':
mconf.c:(.text+0x1256): undefined reference to `initscr'
mconf.c:(.text+0x125d): undefined reference to `stdscr'
scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
checklist.c:(.text+0x41): undefined reference to `wmove'
checklist.c:(.text+0x61): undefined reference to `acs_map'
checklist.c:(.text+0x69): undefined reference to `waddch'

………………………………………………………………………………

………………………………………………………………………………

menubox.c:(.text+0x55): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_arrows':
menubox.c:(.text+0x1a5): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `do_print_item':
menubox.c:(.text+0x3b2): undefined reference to `wrefresh'
scripts/kconfig/lxdialog/menubox.o: In function `print_buttons':
menubox.c:(.text+0x4d4): undefined reference to `wrefresh'
collect2: ld returned 1 exit status
make[1]: *** [scripts/kconfig/mconf] Error 1
make: *** [menuconfig] Error 2


***************************************


解决方法如下:

sudo apt-get install build-essential
sudo apt-get install libncurses5
apt-get install libncurses5-dev

转自:http://blog.csdn.net/fantao015/article/details/8272134




ubuntu12.04 64bit 编译android源码时,在编译内核使用make menuconfig时出现如下错误:

        HOSTLD  scripts/kconfig/mconf
        scripts/kconfig/mconf.o: In function `show_help':
        mconf.c:(.text+0x811): undefined reference to `stdscr'
        scripts/kconfig/mconf.o: In function `main':
        mconf.c:(.text+0x1286): undefined reference to `initscr'
        mconf.c:(.text+0x128d): undefined reference to `stdscr'
        scripts/kconfig/lxdialog/checklist.o: In function `print_arrows':
        checklist.c:(.text+0x41): undefined reference to `wmove'
        checklist.c:(.text+0x61): undefined reference to `acs_map'
        。。。。。。

        解决办法:

        libncurses5 The ncurses shared libraries
        libncurses5-dev Development environment
        libncurses5-dbg Debugging libraries

        libncursesw5 The ncurses shared libraries, with widecharacter support
        libncursesw5-dev Development environment for libncursesw5
        libncursesw5-dbg Debugging libraries for libncursesw5

        安装libncurses5-dev可以解决

        sudo apt-get install libncurses5-dev



ubuntu12.04 64bit 编译android源码时,出现如下错误:

        host Executable: cmu2nuance (out/host/linux-x86/obj/EXECUTABLES/cmu2nuance_intermediates/cmu2nuance)
        /usr/bin/ld: cannot find -lncurses
        collect2: ld returned 1 exit status
        make: *** [out/host/linux-x86/obj/EXECUTABLES/adb_in