修复构建 LineageOS 19.0/AOSP 12 时缺失的依赖项
我正在尝试在运行 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
找到答案:
首先,如果您有三星设备,请确保您拥有最新的三星硬件文件。
其次,只需在
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 yourBoardConfig.mk