【问题标题】:Compiling ARM with buildroot- how to tell where are the ARM GCC include file使用 buildroot 编译 ARM - 如何判断 ARM GCC 包含文件在哪里
【发布时间】:2017-05-06 13:58:23
【问题描述】:

我正在尝试将 buildroot 编译为 ARM cortex M4。

我下载了 ARM 交叉编译器 https://developer.arm.com/open-source/gnu-toolchain/gnu-rm/downloads

并使用 xconfig 配置 buildroot 以使用指向 arm gcc 编译器的外部工具链

但我知道它会搜索 /usr/include 中包含的 version.h

我如何告诉 buildroot 中的 gcc 在我安装的目录中搜索

谢谢!

【问题讨论】:

    标签: arm cross-compiling buildroot


    【解决方案1】:

    这个来自 ARM 的交叉编译器是一个裸机编译器,因此它不能构建 Linux 用户空间应用程序/库。因此,尝试将此编译器与 Buildroot 一起使用没有多大意义,因为 Buildroot 的全部意义在于构建一个 Linux 系统,其中包含 Linux 用户空间应用程序和库。

    【讨论】:

    • 所以我下载了代码源并为编译器创建了 bash shell 脚本: export HOSTCC=arm-none-eabi-gcc export HOSTCXX=arm-none-eabi-g++ export BR2_DL_DIR=/home/elia/ BuildRootDownloads export PATH=/usr/local/CodeBench_1802_EABI/bin:/home/elia/uclibc/include:$PATH export UCLIBC_CONFIG_FILE=/home/elia/buildroot2017_02/buildroot-2017.02.2/package/uclibc/uClibc-ng.config i我在设置中使用内部工具链,从我不明白这个错误/symbol.c:10:25: fatal error: sys/utsname.h: No such file or directory is that uclibc header cannot be found
    • 我正在尝试使用 buildroot 编译 raspbberyPi3。所以我做了以下制作 raspberrypi3_defconfig 然后制作。我安装了 CS 工具链和 uclibc 并将其添加到我上面提到的环境中。我还不能克服 sys/utsname.h 的错误:没有这样的文件。顺便说一句,我尝试了外部工具链,但出现了不同的错误。你能帮忙吗?
    猜你喜欢
    • 2013-01-29
    • 1970-01-01
    • 2021-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多