[QCM6125][Android13] 修复PRODUCT_COPY_FILES无法拷贝so

文章目录

开发平台基本信息

芯片: QCM6125
版本: Android 13
kernel: msm-4.14

问题描述

在进行系统移植时,经常会把一些自己开发的c或者c++程序编译成so库,然后在系统服务中去调用这些库。所以在进行新代码开发时,会在device目录下将so库通过PRODUCT_COPY_FILES拷贝到system/lib以及system/lib64目录底下。在Android13中进行拷贝时,会报这样的错误。

out/target/product/qssi/system/lib/libpn5180.so: error: found ELF prebuilt in PRODUCT_COPY_FILES, use cc_prebuilt_binary / cc_prebuilt_library_shared instead

解决方法

shell 复制代码
--- a/QSSI.13/build/make/core/Makefile
+++ b/QSSI.13/build/make/core/Makefile
@@ -55,10 +55,10 @@ endef
 .PHONY: check-elf-prebuilt-product-copy-files
 check-elf-prebuilt-product-copy-files:
 
-check_elf_prebuilt_product_copy_files := true
-ifneq (,$(filter true,$(BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES)))
-check_elf_prebuilt_product_copy_files :=
-endif
+# check_elf_prebuilt_product_copy_files := true
+# ifneq (,$(filter true,$(BUILD_BROKEN_ELF_PREBUILT_PRODUCT_COPY_FILES)))
+# check_elf_prebuilt_product_copy_files :=
+# endif
 check_elf_prebuilt_product_copy_files_hint := \
     found ELF prebuilt in PRODUCT_COPY_FILES, use cc_prebuilt_binary / cc_prebuilt_library_shared instead.
相关推荐
拾忆,想起10 小时前
Dubbo核心架构全解析:构建微服务通信的高速公路
java·微服务·云原生·架构·dubbo·哈希算法
楠枬10 小时前
Spring Cloud 概述
java·spring cloud·微服务
♡喜欢做梦10 小时前
MyBatis操作数据库(入门)
java·数据库·mybatis
q***d17310 小时前
微服务与单体架构的成本对比
java·微服务·架构
冻感糕人~10 小时前
Agent框架协议“三部曲”:MCP、A2A与AG-UI的协同演进
java·人工智能·学习·语言模型·大模型·agent·大模型学习
阿Y加油吧11 小时前
java并发编程面试题精讲——day02
java·面试·c#
ArabySide11 小时前
【Spring Boot】基于MyBatis的条件分页
java·spring boot·后端·mybatis
z***y86211 小时前
后端服务限流配置,Nginx与Spring Cloud Gateway
java·服务器·nginx
熙客11 小时前
Java集合框架概述
java·开发语言
一只会写代码的猫11 小时前
深度解析 Java、C# 和 C++ 的内存管理机制:自动 vs 手动
java·jvm·算法