HarmonyOS libEGL.so库在 API12 上不见了

app 运行在 API12 的模拟器上或者真机上闪退,报错出现大量符号 not found。

05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glBindVertexArray v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glBlendBarrierKHR v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glBlitFramebuffer v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glCheckFramebufferStatus v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glClearBufferfi v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glClearBufferfv v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glClearBufferiv v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glClearBufferuiv v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glClearDepthf v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glClientWaitSync v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glCompressedTexImage3D v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glCompressedTexSubImage3D v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glCopyBufferSubData v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glCopyTexSubImage3D v= 
  05-14 08:41:44.840 16623 16680 E C03f00/MUSL-LDSO: do_dlsym failed: symbol not found. so=/system/lib64/libEGL.so s=glDebugMessageCallbackKHR v=
HarmonyOS
2024-09-13 10:10:11
浏览
收藏 0
回答 1
待解决
回答 1
按赞同
/
按时间
superinsect

上面日志中符号找不到问题,原因是在cmake文件中find_library和target_link_libraries中没有引用libc++_shared.so,导致最终编译的文件没有输出到手机中。

分享
微博
QQ
微信
回复
2024-09-13 16:59:57
相关问题
onehop Device Ability 这个模板咋不见了
4117浏览 • 1回复 待解决
Api12 arm模拟器无法启动
213浏览 • 1回复 待解决
Native侧如何集成三方SO
2023浏览 • 1回复 待解决
HarmonyOS 如何适配自己的so
378浏览 • 1回复 待解决
API11编译的har包可以api10使用吗
1811浏览 • 1回复 待解决
5.0.3.200版本无法选择API 12为编译版本
256浏览 • 1回复 待解决
HarmonyOS模拟器使用libjsvm.so崩溃
206浏览 • 1回复 待解决
ArkTS项目如何调用已有SO?
766浏览 • 1回复 待解决
如何在Native层加载so
992浏览 • 1回复 待解决
DevEco Studio开发如何引入.so
10457浏览 • 1回复 待解决