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

编译CyanogenMod 13(适配Z3 Dual)ROM失败,求解决方案

索尼Z3 Dual编译CyanogenMod 13 ROM失败求助

编译索尼Z3 Dual的CyanogenMod 13 ROM时出现编译失败,更换设备树后问题依旧,编译过程中的错误输出如下:

find: ‘src/com/android/cts/verifier/backup’: 没有那个文件或目录
build/core/base_rules.mk:559: warning: overriding recipe for target '/home/aao/cm-13.0/out/target/product/z3dual/root/res/images/charger/battery_fail.png'
build/core/base_rules.mk:559: warning: ignoring old recipe for target '/home/aao/cm-13.0/out/target/product/z3dual/root/res/images/charger/battery_fail.png'
find: ‘dummy’: 没有那个文件或目录
*** 检测到Overlay变更,清理共享中间文件...
*** rm -rf /home/aao/cm-13.0/out/target/common/obj/APPS/framework-res_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/SettingsProvider_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/SystemUI_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/SystemUITests_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/Camera2_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/Settings_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/Trebuchet_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/LatinIME_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/TelephonyProvider_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/Telecom_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/TeleService_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/org.cyanogenmod.platform-res_intermediates /home/aao/cm-13.0/out/target/common/obj/APPS/CMSettingsProvider_intermediates
PRODUCT_COPY_FILES device/sony/z3/rootdir/init.device.rc:root/init.device.rc 已忽略。
PRODUCT_COPY_FILES device/sony/z3/audio/mixer_paths.xml:system/etc/mixer_paths.xml 已忽略。
PRODUCT_COPY_FILES device/sony/z3/bcmdhd.cal:system/etc/wifi/bcmdhd.cal 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b00:system/etc/firmware/adsp.b00 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b01:system/etc/firmware/adsp.b01 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b02:system/etc/firmware/adsp.b02 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b03:system/etc/firmware/adsp.b03 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b04:system/etc/firmware/adsp.b04 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b05:system/etc/firmware/adsp.b05 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b06:system/etc/firmware/adsp.b06 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b07:system/etc/firmware/adsp.b07 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b08:system/etc/firmware/adsp.b08 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b09:system/etc/firmware/adsp.b09 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b10:system/etc/firmware/adsp.b10 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b11:system/etc/firmware/adsp.b11 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.b12:system/etc/firmware/adsp.b12 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/adsp.mdt:system/etc/firmware/adsp.mdt 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b00:system/etc/firmware/modem.b00 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b01:system/etc/firmware/modem.b01 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b02:system/etc/firmware/modem.b02 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b03:system/etc/firmware/modem.b03 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b06:system/etc/firmware/modem.b06 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b08:system/etc/firmware/modem.b08 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b09:system/etc/firmware/modem.b09 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b11:system/etc/firmware/modem.b11 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b12:system/etc/firmware/modem.b12 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b13:system/etc/firmware/modem.b13 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b14:system/etc/firmware/modem.b14 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b15:system/etc/firmware/modem.b15 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b16:system/etc/firmware/modem.b16 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b17:system/etc/firmware/modem.b17 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b18:system/etc/firmware/modem.b18 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b19:system/etc/firmware/modem.b19 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b22:system/etc/firmware/modem.b22 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b23:system/etc/firmware/modem.b23 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b24:system/etc/firmware/modem.b24 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.b25:system/etc/firmware/modem.b25 已忽略。
PRODUCT_COPY_FILES vendor/sony/z3/proprietary/etc/firmware/modem.mdt:system/etc/firmware/modem.mdt 已忽略。
TARGET_DEVICE z3dual 无私有恢复资源
host C: acp <= build/tools/acp/acp.c
host C: libhost <= build/libs/host/CopyFile.c
prebuilts/clang/linux-x86/host/3.6/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:825: /home/aao/cm-13.0/out/host/linux-x86/obj/EXECUTABLES/acp_intermediates/acp.o] Error 127
make: *** 等待未完成的任务....
prebuilts/clang/linux-x86/host/3.6/bin/clang: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
make: *** [build/core/binary.mk:825: /home/aao/cm-13.0/out/host/linux-x86/obj/STATIC_LIBRARIES/libhost_intermediates/CopyFile.o] Error 127
make: 离开目录 '/home/aao/cm-13.0'
make未能构建部分目标(耗时35秒)

解决办法

1. 修复核心依赖缺失问题

编译失败的直接原因是libncurses.so.5库文件缺失,根据你使用的Linux发行版执行对应命令安装:

  • Debian/Ubuntu 系列:
    sudo apt update
    sudo apt install libncurses5 libncurses5:i386
    
  • Fedora/RHEL 系列:
    sudo dnf install ncurses-libs ncurses-libs.i686
    
  • Arch Linux 系列:
    sudo pacman -S ncurses lib32-ncurses
    

2. 处理次要警告(可选)

  • PRODUCT_COPY_FILES忽略警告:这是因为z3dual设备树可能继承了z3的配置,但部分文件路径重复或未在z3dual设备树中正确定义。可以检查device/sony/z3dual下的AndroidProducts.mk或device.mk文件,调整PRODUCT_COPY_FILES的条目,确保指向z3dual专属的文件路径。
  • find找不到目录的警告:属于CTS验证相关的可选文件缺失,不影响核心ROM编译,可直接忽略。

安装依赖后,重新执行编译命令即可继续构建。

内容的提问来源于stack exchange,提问作者AAA

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.14 11:12:02