- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在使用 buildroot 为 Raspberry 构建操作系统。编译时出现此错误
BuildRoot/bsquask/host/usr/arm-buildroot-linux-gnueabi/sysroot/usr/include/bits/predefs.h:20:3: error: #error "Never use <bits/predefs.h> directly; include <features.h> instead."
# error "Never use <bits/predefs.h> directly; include <features.h> instead."
网上搜了一下,some为这个头打一个补丁并修改它,他们说它有效但不适合我(我发现了很多补丁)
predefs.h
#ifndef _FEATURES_H
# error "Never use <bits/predefs.h> directly; include <features.h> instead."
#endif
#ifndef _PREDEFS_H
#define _PREDEFS_H
/* We do support the IEC 559 math functionality, real and complex, but only
if a VFP coprocessor is present. If we don't have one, we fall back to
software emulation and the functions won't work properly. So in general,
we don't claim to support this functionality. */
#if defined (__VFP_FP__) && !defined(__SOFTFP__)
#define __STDC_IEC_559__ 1
#define __STDC_IEC_559_COMPLEX__ 1
#endif
#endif /* predefs.h */
最佳答案
通过忽略错误来编辑文件(注释该行)
#ifndef _FEATURES_H
//# error "Never use <bits/predefs.h> directly; include <features.h> instead."
#endif
根据我的经验,这种方式对我来说效果很好
关于linux - buildroot : predefs. h header 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25227105/
我是 Buildroot 的新手。我有 P2041RDB NXP 板的 Linux 内核源代码,那么我应该把它放在哪里以及如何在配置中设置这个位置? 最佳答案 目前无法从 Buildroot 配置中设
Buildroot 中是否有某种方法可以更改使用“uname -a”命令显示的内核版本字符串?例如: # uname -a Linux buildroot 5.1.0 #1 PREEMPT Wed N
我继承的一个项目使用了一个非常旧版本的 buildroot,但我想将其更改为使用仅在以后的 buildroot 版本中添加的功能。 是否有一种直接的方法可以更新 buildroot 设置以使用更高版本
我正在实现一个 buildroot 包 foo,它不能与特定的其他包 bar 一起包含。我试图通过编写 depends on 来定义相互排斥的包- 相应 Config.in 中的声明-文件。 在 fo
是否有一个中心位置记录了 buildroot 的配置和 defconfig 文件中使用的所有 BR2 选项? 目前,我正在寻找自定义 buildroot 目标设备树的方法。我偶然发现了选项 BR2_L
Buildroot 是一种可用于为嵌入式系统板构建 Linux 镜像的工具。 Buildroot 带有一组预定义的 Python 包,我可以从它的菜单中选择。 此外,Buildroot 添加了一个漂亮
我试过: git checkout 2018.05 make qemu_x86_64_defconfig make BR2_JLEVEL="$(nproc)" "$(pwd)/output/image
Buildroot 提供了一种将 sqlite 添加到我的构建配置中的方法,但我看不到任何地方表明 sqlite 库是否具有多线程支持。如何判断Builtroot包含的sqlite库版本是否支持多线程
我试过: git checkout 2018.05 make qemu_x86_64_defconfig make BR2_JLEVEL="$(nproc)" "$(pwd)/output/image
Buildroot 提供了一种将 sqlite 添加到我的构建配置中的方法,但我看不到任何地方表明 sqlite 库是否具有多线程支持。如何判断Builtroot包含的sqlite库版本是否支持多线程
我将 Buildroot 用作子模块,并且我想通过自己的一些修改来重用现有的树内定义配置。 我只想将修改后的选项存储在配置片段中,就像我可以使用 BR2_LINUX_KERNEL_CONFIG_FRA
我已将 BR2_JLEVEL 设置为 2 ;不确定这个选项在 buildroot 中如何工作?有人可以详细说明它在 buildroot 中的工作方式,因为我没有看到我的构建时间有所改进。 最佳答案 B
我们已将 bash 添加到我们的 buildroot 配置中,现在希望将其设为 root 用户的默认 shell。我不希望将 passwd 文件添加到我们的覆盖中,所以有没有办法通过 buildroo
是否可以在 buildroot 的外部树(由 BR2_EXTERNAL 变量指定的树)中有一个主机包?我知道我可以实现这样的包,如果存在任何依赖它的包,它将被构建。但是如果没有板包依赖呢?例如,当我们
是否可以在 buildroot 的外部树(由 BR2_EXTERNAL 变量指定的树)中有一个主机包?我知道我可以实现这样的包,如果存在任何依赖它的包,它将被构建。但是如果没有板包依赖呢?例如,当我们
我正在尝试向 buildroot 添加一个包,但我没有取得太大的成功。我要添加的包是 autotools名为 scew 的包裹.我遵循了有关添加包的 buildroot 指南,尽管在 make men
我正在使用 buildroot 和 arm 的 linaro 2016.11。我实际上正在为 i.MX6 处理器构建最新的 Linux 内核。到目前为止一切顺利。 我已经用 设置了 buildroot
buildroot 支持从 git repo 下载包。但是我的 git repo 包含子模块。 如何命令 buildroot 下载带有子模块的包? 最佳答案 自~ July 2016您可以为包启用子模
我想知道是否可以在分区表中添加更多分区,以及如何添加。我已经测试过更改 genimage.cfg 但似乎 support/scripts/genimage.sh 没有创建它。 提前谢谢你。 最佳答案
我目前有一个 buildroot 配置,输出一个 U-Boot 包装的根文件系统。该过程的一部分覆盖来自外部目录的文件,其中包含网络接口(interface)、profile.d 脚本和一些自定义可执
我是一名优秀的程序员,十分优秀!