修复构建 LineageOS 19.0/AOSP 12 时缺失的依赖项

发布于 2025-01-13 12:56:05 字数 1165 浏览 2 评论 0原文

我正在尝试在运行 Fedora 34 工作站的 VPS 上构建 Lineage 19.0。它有 8GB RAM 和 20GB Swap。它是在KVM 中虚拟化的。

它已经正确完成了所有其他工作,并且我仔细检查了是否遗漏了任何依赖项。我还使用 https://github.com/LineageOS 重新克隆了 hardware/ril 路径/android_hardware_ril/tree/lineage-19.0/ 但它也不起作用。

这就是错误。

[ 99% 1244/1245] finishing build rules ...
FAILED: 
hardware/ril/reference-ril/Android.mk: error: "libreference-ril (SHARED_LIBRARIES android-arm) missing libril (SHARED_LIBRARIES android-arm)" 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/ril/rild/Android.mk: error: "rild (EXECUTABLES android-arm) missing libril (SHARED_LIBRARIES android-arm)" 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:1122: error: exiting from previous errors.
21:03:21 ckati failed with: exit status 1

#### failed to build some targets (02:24 (mm:ss)) ####

答案如下

I am trying to build Lineage 19.0 on a VPS running Fedora 34 Workstation. It has 8GB RAM and 20GB Swap. It is virtualized in KVM.

It had done all the other work correctly and I have doubled-check if I am leaving out on any dependencies. I had also recloned the hardware/ril path using https://github.com/LineageOS/android_hardware_ril/tree/lineage-19.0/ but it also didn't work.

This is the error.

[ 99% 1244/1245] finishing build rules ...
FAILED: 
hardware/ril/reference-ril/Android.mk: error: "libreference-ril (SHARED_LIBRARIES android-arm) missing libril (SHARED_LIBRARIES android-arm)" 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
hardware/ril/rild/Android.mk: error: "rild (EXECUTABLES android-arm) missing libril (SHARED_LIBRARIES android-arm)" 
You can set ALLOW_MISSING_DEPENDENCIES=true in your environment if this is intentional, but that may defer real problems until later in the build.
build/make/core/main.mk:1122: error: exiting from previous errors.
21:03:21 ckati failed with: exit status 1

#### failed to build some targets (02:24 (mm:ss)) ####

ANSWER GIVEN BELOW

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

长梦不多时 2025-01-20 12:56:05

找到答案:

首先,如果您有三星设备,请确保您拥有最新的三星硬件文件。

其次,只需在 BoardConfig.mk 中添加 ALLOW_MISSING_DEPENDENCIES=true

Found an answer:

First, ensure if you have a Samsung device that you have the latest Samsung hardware files.

Secondly, just throw in ALLOW_MISSING_DEPENDENCIES=true in your BoardConfig.mk

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文