AOSP-错误:覆盖目标(...)的命令,先前在(...)中定义 [英] AOSP - Error: Overriding commands for target (...), previously defined at (...)

查看:121
本文介绍了AOSP-错误:覆盖目标(...)的命令,先前在(...)中定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为不受支持的设备(surnia-Moto E2 2015 LTE)构建AOSP.

I'm trying to build AOSP for non - supported device (surnia - Moto E2 2015 LTE).

我早些时候解决了很多问题,但是现在我有一个我无法避免的问题.我看到很多人都遇到了这个问题,但是他们只是警告...

I solved lots of problems earlier but now I have one that I can't avoid. I saw a lot of people had that problem, but their was just warning...

我该怎么办?还是可以帮我找到Surnia装置树(但要购买AOSP)?

What can I do? Or could you help me finding surnia device tree (but for stock AOSP)?

[100% 441/441] writing build rules ...
FAILED: 
build/make/core/Makefile:28: error: overriding commands for target `out/target/product/surnia/system/vendor/lib/libHevcSwDecoder.so', previously defined at build/make/core/base_rules.mk:480
19:07:53 ckati failed with: exit status 1

#### failed to build some targets (01:22 (mm:ss)) ####

推荐答案

我最近遇到了类似的错误.这是因为 PRODUCT_COPY_FILES 中的重复条目,它们都试图将某些文件复制到相同的目标 out/target/product/surnia/system/vendor/lib/libHevcSwDecoder.so .这将导致en错误.

I've recently encountered a similar error. It's because of a duplicate entry in PRODUCT_COPY_FILES which both are trying to copy some file to the same destination out/target/product/surnia/system/vendor/lib/libHevcSwDecoder.so. This will cause en error.

对我来说,重复的条目位于以下文件中:

For me, the duplicate entry was in the following file:

<AOSP_ROOT>/vendor/google_devices/<DEVICE_CODENAME>/<DEVICE_CODENAME>-vendor-blobs.mk

对于您来说,我认为您应该寻找 surnia-vendor-blobs.mk .打开此文件,找到 PRODUCT_COPY_FILES 条目,该条目的目标 out/target/product/surnia/system/vendor/lib/libHevcSwDecoder.so ,然后可以将其删除以解决错误.

For you, I think you should be looking for surnia-vendor-blobs.mk. Open this file and find the PRODUCT_COPY_FILES entry that has the destination out/target/product/surnia/system/vendor/lib/libHevcSwDecoder.so, then you can remove it to resolve the error.

这是一个解决方法,很遗憾,我无法找出根本原因是什么.

This is a workaround, unfortunately I couldn't figout out what's the root problem.

顺便说一句,欢迎Peter参加Stack Overflow!

by the way, Welcome Peter to Stack Overflow!

这篇关于AOSP-错误:覆盖目标(...)的命令,先前在(...)中定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆