[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.
相关推荐
caoerzhong5 分钟前
JeeWMS 开源仓库管理系统全景解读:一套 Java WMS 如何把 WMS/OMS/BMS/TMS 装进同一个系统
java·开源
曹牧15 分钟前
Java集合框架:List、ArrayList、Map 和 HashMap
java
顾城猿20 分钟前
STOMP 协议
java
+VX:Fegn08951 小时前
计算机毕业设计|基于springboot + vue旅游管理系统(源码+数据库+文档)
java·开发语言·vue.js·spring boot·课程设计
需要8261 小时前
MySQL 索引 B+ 树与“查询为什么变慢了
java·spring boot·spring·spring cloud·tomcat
一 乐2 小时前
二手交易平台|基于springboot + vue二手交易平台(源码+数据库+文档)
java·数据库·vue.js·spring boot·小程序
万年咸鱼2 小时前
编译Java源程序
java
Wang's Blog2 小时前
Java 项目实战: 外卖平台-删除分类的关联校验与自定义业务异常
java·服务器·项目开发
hai_android2 小时前
Kotlin / Android 常用函数使用示例手册
android·java·kotlin
MayBaymax2 小时前
MongoDB 索引与事务
java·数据库·mongodb