• Lv0
    粉丝0

积分6 / 贡献0

提问1答案被采纳0文章1

作者动态

OpenHarmony 5.0 cpp编译 出现 hap包里只有 .so 但是指定要.z.so文件bug, libentry.z.so

panhuohuo 显示全部楼层 发表于 4 天前

【问题描述】

  1. 无法跑对应cpp代码 qt的
  2. 相关的代码(请勿使用截图)
  3. 01-01 08:52:31.682   10868-10868   C03f00/MUSL-LDSO                pid-10868             E     Open absolute_path library: check ns accessible failed, pathname /system/lib/module/libentry.z.so namespace ndk.
    01-01 08:52:31.683   10868-10868   C03f00/MUSL-LDSO                pid-10868             E     Error loading header /system/lib/module/libentry.z.so, namespace ndk has no inherits, errno=2
    01-01 08:52:31.683   10868-10868   C03f00/MUSL-LDSO                pid-10868             E     Error loading header: can't find library /system/lib/module/libentry.z.so in namespace: default
    01-01 08:52:31.683   10868-10868   C03f00/MUSL-LDSO                pid-10868             E     dlopen_impl load library header failed for /system/lib/module/libentry.z.so
    01-01 08:52:31.683   10868-10868   C03f00/MUSL-LDSO                pid-10868             E     Open absolute_path library: check ns accessible failed, pathname /system/lib/module/libentry_napi.z.so namespace ndk.
    01-01 08:52:31.683   10868-10868   C03f00/MUSL-LDSO                pid-10868             E     Error loading header /system/lib/module/libentry_napi.z.so, namespace ndk has no inherits, errno=2
    01-01 08:52:31.683   10868-10868   C03f00/MUSL-LDSO                pid-10868             E     Error loading header: can't find library /system/lib/module/libentry_napi.z.so in namespace: default
    01-01 08:52:31.683   10868-10868   C03f00/MUSL-LDSO                pid-10868             E     dlopen_impl load library header failed for /system/lib/module/libentry_napi.z.so
    01-01 08:52:31.683   10868-10868   C03f01/NAPI                     pid-10868             E     [(native_module_manager.cpp:917)(GetFileBuffer)] /system/etc/abc/entry.abc is not existed.
    01-01 08:52:31.683   10868-10868   C03f01/NAPI                     pid-10868             E     [(native_module_manager.cpp:1016)(FindNativeModuleByDisk)] First attempt: load app module failed. Error loading shared library /system/lib/module/libentry.z.so: No such file or directory
    01-01 08:52:31.683   10868-10868   C03f01/NAPI                     pid-10868             E     Second attempt: load app module failed. Error loading shared library /system/lib/module/libentry_napi.z.so: No such file or directory
    01-01 08:52:31.683   10868-10868   C03f01/NAPI                     pid-10868             E     try to load abc file from /system/etc/abc/entry.abc failed
  4. 运行结果、错误截图
  5. 我想要达到的结果

【运行环境】

硬件: ROM版本:5.0.0.2 DevEvoStudio版本:DevEco Studio 5.0.1 Release Build #DS-233.14475.28.36.505310 Build Version: 5.0.5.310, built on December 13, 2024

SDK版本:12

api版本:12

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论4

panhuohuo

沙发 发表于 4 天前
这边想出来方法可以把libentry.so改成libentry.z.so,但是还是算了太折腾,我也不知道应用安装目录在哪里

panhuohuo

板凳 发表于 4 天前
这个是完整log忘了发

panhuohuo

地板 发表于 4 天前
Qt5.15.12_alpha_v6_arm64-v8a_openharmony_ndk_4.1.7.8_community_win

panhuohuo

5# 发表于 4 天前
也不知道它对应build.gn哪里改 我是windows deveco studio
共4 条回复,点击查看

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部