问题描述
我下面这个wiki http://wiki.cyanogenmod.org/w/Build_for_bacon 建立的CyanogenMod 12 oneplus之一。构建失败,出现以下错误。
早午餐培根
包括供应商/平方厘米/ vendorsetup.sh
寻找依赖
============================================
PLATFORM_VERSION_ codeNAME = REL
PLATFORM_VERSION = 5.0.2
CM_VERSION = 12-20150505 - 非官方培根
TARGET_PRODUCT = cm_bacon
TARGET_BUILD_VARIANT = userdebug
TARGET_BUILD_TYPE =释放
TARGET_BUILD_APPS =
TARGET_ARCH =手臂
TARGET_ARCH_VARIANT =的ARMv7-A-霓虹灯
TARGET_CPU_VARIANT =金环蛇
TARGET_2ND_ARCH =
TARGET_2ND_ARCH_VARIANT =
TARGET_2ND_CPU_VARIANT =
HOST_ARCH = x86_64的
HOST_OS = linux的
HOST_OS_EXTRA = Linux的3.19.0-15-仿制的x86_64-与-Ubuntu的15.04,生动
HOST_BUILD_TYPE =释放
BUILD_ID = LRX22G
OUT_DIR = /媒体/ habisravi / 04D2DE9BD2DE8FF2 / CXX /安卓/系统/输出
错误:
编译/核心/ copy_headers.mk:15:警告:压倒一切的良方目标'/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/obj/include/qcom/display/copybit.h'
建立/核心/ copy_headers.mk:15:警告:无视老秘方目标'/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/obj/include/qcom/display/copybit.h'
建立/核心/ copy_headers.mk:15:警告:压倒一切的良方目标'/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/obj/include/qcom/display/copybit_priv.h'
建立/核心/ copy_headers.mk:15:警告:无视老秘方目标'/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/obj/include/qcom/display/copybit_priv.h'
设备/ OPPO / msm8974常见/ mkbootimg.mk:21:警告:压倒一切的良方目标的/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/dt.img
建立/核心/ generate_extra_images.mk:109:警告:无视老配方目标的/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/dt.img
使:***没有规则,使目标'/媒体/ habisravi / 04D2DE9BD2DE8FF2 / CXX /安卓/系统/输出/主机/ Linux的-86 /斌/ dtbToolCM',需要'/媒体/ habisravi / 04D2DE9BD2DE8FF2 / CXX /安卓/system/out/target/product/bacon/dt.img。停止。
使:***等待未完成的工作....
我面临同样的问题,它是由于CyanogenMod的不保持它们的依赖更新。
下面是解决方案:
1)进入到你所有的code(croot您的基本目录),然后运行以下命令:
$ MKDIR的.repo / local_manifests
$纳米的.repo / local_manifests / local_manifests.xml(你可以将其命名为任何你喜欢的)
2)粘贴以下行到local_manifests.xml:
< XML版本=1.0编码=UTF-8&GT?;
<舱单>
<项目名称=的CyanogenMod / android_device_oneplus_bacon路径=设备/ oneplus /腊肉远程=GitHub的修订版=CM-12.1/>
<项目名称=的CyanogenMod / android_device_qcom_common路径=设备/ QCOM /常见的远程=GitHub的修订版=CM-12.1/>
<项目名称=的CyanogenMod / android_device_oppo_msm8974-常见的路径=设备/ OPPO / msm8974,常见的远程=GitHub的修订版=CM-12.1/>
<项目名称=的CyanogenMod / android_device_oppo_common路径=设备/ OPPO /常见的远程=GitHub的修订版=CM-12.1/>
<项目名称=的CyanogenMod / android_kernel_oneplus_msm8974路径=内核/ oneplus / msm8974远程=GitHub的修订版=CM-12.1/>
<项目名称=TheMuppets / proprietary_vendor_oppo路径=供应商/ OPPO远程=GitHub的修订版=CM-12.1/>
<项目名称=TheMuppets / proprietary_vendor_oneplus路径=供应商/ oneplus远程=GitHub的修订版=CM-12.1/>
< /舱单>
3)。按照向导的其余部分。现在,您也可以排除提取专用的斑点一节为所有的设备(heMuppets / proprietary_vendor_oneplus)中提取的文件local_manifests.xml已经上市的
我希望这有助于。
I am following this wiki http://wiki.cyanogenmod.org/w/Build_for_bacon to build cyanogenmod 12 for oneplus one. Build fails with the following error.
brunch bacon
including vendor/cm/vendorsetup.sh
Looking for dependencies
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=5.0.2
CM_VERSION=12-20150505-UNOFFICIAL-bacon
TARGET_PRODUCT=cm_bacon
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=krait
TARGET_2ND_ARCH=
TARGET_2ND_ARCH_VARIANT=
TARGET_2ND_CPU_VARIANT=
HOST_ARCH=x86_64
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.19.0-15-generic-x86_64-with-Ubuntu-15.04-vivid
HOST_BUILD_TYPE=release
BUILD_ID=LRX22G
OUT_DIR=/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out
Error:
build/core/copy_headers.mk:15: warning: overriding recipe for target '/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/obj/include/qcom/display/copybit.h'
build/core/copy_headers.mk:15: warning: overriding recipe for target '/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/obj/include/qcom/display/copybit_priv.h'
build/core/copy_headers.mk:15: warning: ignoring old recipe for target '/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/obj/include/qcom/display/copybit_priv.h'
device/oppo/msm8974-common/mkbootimg.mk:21: warning: overriding recipe for target '/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/dt.img'
build/core/generate_extra_images.mk:109: warning: ignoring old recipe for target '/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/dt.img'
make: *** No rule to make target '/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/host/linux-x86/bin/dtbToolCM', needed by '/media/habisravi/04D2DE9BD2DE8FF2/cxx/android/system/out/target/product/bacon/dt.img'. Stop.
make: *** Waiting for unfinished jobs....
I faced the same problem, Its due to cyanogenmod not keeping their dependencies updated.
Here is the solution:
1.) Go to your base directory where you have all the code (croot) and run the following commands:
$ mkdir .repo/local_manifests
$ nano .repo/local_manifests/local_manifests.xml (You can name it anything you like)
2.) Paste the following lines into local_manifests.xml:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_oneplus_bacon" path="device/oneplus/bacon" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_device_qcom_common" path="device/qcom/common" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_device_oppo_msm8974-common" path="device/oppo/msm8974-common" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_device_oppo_common" path="device/oppo/common" remote="github" revision="cm-12.1" />
<project name="CyanogenMod/android_kernel_oneplus_msm8974" path="kernel/oneplus/msm8974" remote="github" revision="cm-12.1" />
<project name="TheMuppets/proprietary_vendor_oppo" path="vendor/oppo" remote="github" revision="cm-12.1" />
<project name="TheMuppets/proprietary_vendor_oneplus" path="vendor/oneplus" remote="github" revision="cm-12.1" />
</manifest>
3.) Follow rest of the guide. You can now also exclude "Extract proprietary blobs" section as all the files extracted from device (heMuppets/proprietary_vendor_oneplus) are already listed in local_manifests.xml
I hope this helps.
这篇关于CM12构建失败oneplus 1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!