`

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_intermediates/adb] Error 1
        make: *** Waiting for unfinished jobs....
        host Executable: coverage (out/host/linux-x86/obj/EXECUTABLES/coverage_intermediates/coverage)


        安装libncurses5-dev:i386可以解决

        sudo apt-get install libncurses5-dev:i386

转自:http://blog.csdn.net/smilettxp/article/details/7172925
分享到:
评论

相关推荐

    OMAPL138编译Linux内核方法

    Host# make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig ``` 首先通过`omapl138_defconfig`来加载默认的配置文件,之后使用`menuconfig`对特定选项进行自定义配置。 **1.1.3 编译内核** 配置完成...

    linux内核配置make_menuconfig菜单详解.docx

    3. 在 make menuconfig 命令出现蓝色配置界面以前,系统帮我们做了以下工作:读取 arch/$ARCH/configs 文件夹下的配置选项,并将其保存在 Linux 内核根目录下的 include/generated/autoconf.h 文件下。 4. 我们可以...

    海思3531A uboot uImage 编译.doc

    2. 配置内核:使用 make ARCH=arm CROSS_COMPILE=arm-hisivXXX-linux- menuconfig 命令配置内核。 3. 选择需要的模块:在 menuconfig 中选择需要的模块,例如 cfg80211 和 ax88179。 4. 编译 uImage:使用 make ARCH...

    qemu调试arm linux 内核环境搭建.doc

    在编译内核时,确保开启调试选项,并使用`make CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm O=./out_vexpress_3_16 zImage-gdb`生成调试信息。然后,在QEMU启动时添加`-s -S`参数以暂停启动并监听GDB连接: ```bash...

    linux内核裁剪其中一种方法嗷嗷嗷

    使用 make arch=arm menuconfig 命令可以打开图形界面,然后输入要裁剪的设备树节点对应的宏,以便裁剪 Linux 内核。 八、编译和测试 在裁剪 Linux 内核后,需要编译和测试裁剪后的内核,以便确保裁剪后的内核可以...

    linux 内核配置机制

    2. **Kconfig文件**:系统首先读取arch/$ARCH/目录下的Kconfig文件,$ARCH是架构名称,由内核根目录的makefile文件定义,或者可以通过命令行指定,如`make ARCH=arm menuconfig`。Kconfig文件定义了所有可用的配置...

    ARM_linux交叉编译

    2. **make ARCH=arm CROSS_COMPILE=arm-iwmmxt-linux-gnueabi- menuconfig**:配置内核,这里使用了命令行界面的 menuconfig。首先设置目标架构为 ARM(ARCH=arm),然后指定交叉编译器前缀(CROSS_COMPILE)。在...

    嵌入式Linux系统的构建

    前期工作:a.配置好tftp服务器:在嵌入式的童年中有介绍  b.开发板可以pc,linux ...  arm平台:make menuconfig ARCH=arm  将内核配置文件拷贝到内核目录中config-file  查看cpu是否对应:system type->arm sy

    zynq开发过程中Linux平台指令表,例如编译内核、设备树等指令

    - `make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig`:允许开发者通过图形界面配置内核选项。 - `make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage -j10`:此命令用于编译内核镜像(zImage...

    linux移植到ARM的内核裁剪步骤

    ### Linux 移植到 ARM 的内核裁剪步骤详解 #### 一、引言 随着嵌入式技术的发展,Linux 作为一种开源的操作系统,在嵌入式领域的应用越来越广泛。特别是对于 ARM 架构的支持,使得 Linux 成为了许多嵌入式设备的...

    linux内核添加新驱动,并提供menuconfig

    3. **使驱动出现在配置菜单中**:为了让这个驱动出现在`menuconfig`的配置菜单中,还需要在`arch/arm/Kconfig`和`drivers/Kconfig`文件中添加以下内容: ```make source "drivers/hello/Kconfig" ``` 需要注意...

    mini6410_2.6.38内核_uart1_platform_device驱动

    make menuconfig ARCH=arm CROSS_COMPILE=arm-linux-, 将Device Driver--> Character Deivce---> Serial Device 下的S3C6400_qrj选项选择为M,然后执行 make modules ARCH=arm CROSS_COMPILE=arm-linux...

    linux内核编译笔记

    Linux内核编译是Linux系统管理员和开发者进行系统定制、优化或修复内核问题时的常见操作。在本文中,我们将深入探讨如何编译Linux内核,主要关注准备工作、配置和编译流程。 首先,我们需要下载Linux内核源码。内核...

    Linux内核在$3C2440上移植的方法

    命令通常为`make ARCH=arm CROSS_COMPILE=arm-linux- allnoconfig`,接着使用`make ARCH=arm CROSS_COMPILE=arm-linux-`进行编译。 **3.4 测试内核** 编译完成后,将编译好的内核文件复制到目标板上,并通过U-Boot...

    实验7 Linux内核移植.pdf

    使用 make exynos_defconfig 命令指定使用的处理器,然后进入内核配置界面使用 make menuconfig 命令。在该界面下可以对 Linux 进行进一步的修改和配置。 4. 编译内核 使用 make uImage 命令编译内核,该过程可能...

    嵌入式Linux内核的编译与移植.pdf

    嵌入式 Linux 内核的移植是任何嵌入式 Linux 开发中最关键的部分。它需要选择合适的交叉编译环境,以便生成能够在目标平台运行的目标代码。 在本文中,宿主机为 X86 主机,系统为 Redhat9.0,内核版本为 2.4.18;...

    android内核编译方法

    make ARCH=arm CROSS_COMPILE=/usr/local/arm-2007q3/bin/arm-none-linux-gnueabi- menuconfig ``` 以上命令首先执行`mrproper`来清除之前的编译结果,然后使用`menuconfig`进行内核配置。在配置界面中,可以根据...

Global site tag (gtag.js) - Google Analytics