You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

SDM712 ROM编译遇SDM845依赖缺失错误,求修复指导

针对SDM712 ROM编译出现SDM845依赖缺失的解决步骤

错误信息

$(shell date -u +%M) was changed, regenerating...
[ 99% 165/166] finishing build rules ...
FAILED: hardware/qcom-caf/sdm845/media/mm-core/Android.mk: error: "libOmxCore (SHARED_LIBRARIES android-arm64) missing libplatformconfig (SHARED_LIBRARIES android-arm64)" 
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/qcom-caf/sdm845/media/mm-core/Android.mk: error: "libOmxCore (SHARED_LIBRARIES android-arm) missing libplatformconfig (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/qcom-caf/sdm845/media/mm-core/Android.mk: error: "libmm-omxcore (SHARED_LIBRARIES android-arm64) missing libplatformconfig (SHARED_LIBRARIES android-arm64)" 
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/qcom-caf/sdm845/media/mm-core/Android.mk: error: "libmm-omxcore (SHARED_LIBRARIES android-arm) missing libplatformconfig (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/qcom-caf/sdm845/media/mm-video-v4l2/vidc/vdec/Android.mk: error: "libOmxVdec (SHARED_LIBRARIES android-arm64) missing libplatformconfig (SHARED_LIBRARIES android-arm64)" 
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/qcom-caf/sdm845/media/mm-video-v4l2/vidc/vdec/Android.mk: error: "libOmxVdec (SHARED_LIBRARIES android-arm) missing libplatformconfig (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/qcom-caf/sdm845/media/mm-video-v4l2/vidc/venc/Android.mk: error: "libOmxVenc (SHARED_LIBRARIES android-arm64) missing libplatformconfig (SHARED_LIBRARIES android-arm64)" 
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/qcom-caf/sdm845/media/mm-video-v4l2/vidc/venc/Android.mk: error: "libOmxVenc (SHARED_LIBRARIES android-arm) missing libplatformconfig (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:1124: error: exiting from previous errors.
14:53:06 ckati failed with: exit status 1
#### failed to build some targets (01:21 (mm:ss)) ####

解决方案

  • 检查并修正Manifest配置

    1. 导出当前manifest文件:repo manifest -o current.xml
    2. 搜索文件中的sdm845,确认是否错误引入了SDM845的硬件仓库。SDM712属于SDM710系列,应使用sdm710/sdm712分支的仓库,而非sdm845。
    3. 替换错误的仓库条目,例如将hardware/qcom-caf/sdm845/media替换为hardware/qcom-caf/sdm712/media,并同步:repo sync -c
  • 验证设备BoardConfig配置
    打开device/qcom/<你的设备型号>/BoardConfig.mk,确认TARGET_BOARD_PLATFORM的值为sdm712,而非sdm845。若错误,修改后保存。

  • 补全缺失的libplatformconfig依赖
    libplatformconfig属于QCAF平台配置库,执行以下命令同步对应仓库:

    repo sync hardware/qcom-caf/sdm712/platformconfig -c
    

    如果manifest中没有该仓库条目,需要添加类似以下内容到manifest.xml:

    <project path="hardware/qcom-caf/sdm712/platformconfig" name="platform/hardware/qcom-caf/sdm712/platformconfig" remote="caf" revision="LA.UM.9.1.r1-11300-SMxxx0.0" />
    

    注:revision需匹配你使用的Android版本对应的CAF分支

  • 临时规避方案(仅用于测试排查)
    若需跳过依赖检查继续编译,可临时设置环境变量:

    export ALLOW_MISSING_DEPENDENCIES=true
    

    但此方法会掩盖真实问题,可能导致ROM运行时出现库缺失,不推荐用于正式编译。

内容的提问来源于stack exchange,提问作者mr.Learner

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.21 21:07:41