IDE集成FFmpeg三方库开发NAPI调用失败

cole 显示全部楼层 发表于 2024-3-21 21:35:52
【问题描述】
参照https://gitee.com/openharmony-si ... cs/hap_integrate.md中所给方案进行ffmpeg三方库集成,并开发了NAPI,在index.ets导入。但烧录时应用闪退并报错
Error message: failed to load module'@bundle:myffmpegdemo.so' which imported by 'com.example.transfertestapp/entry/ets/pages/Index'. Please check the target path.

除了上面文档中的操作还需要做哪些配置吗?

完整报错信息:
Device info:OpenHarmony 3.2
Build info:OpenHarmony 3.2.13.5
Module name:com.example.transfertestapp
Version:1.0.0
Pid:2206
Uid:20010040
Lifetime: 0.000000s
Js-Engine: ark
page: pages/Index.js
Error message: failed to load module'@bundle:myffmpegdemo.so' which imported by 'com.example.transfertestapp/entry/ets/pages/Index'. Please check the target path.
Stacktrace:
=====================Backtrace========================
# 1:  /system/lib/libark_jsruntime.so(+154343)
# 2:  /system/lib/libark_jsruntime.so(+90447)
# 3:  /system/lib/libark_jsruntime.so(+d5423)
# 4:  /system/lib/libark_jsruntime.so(+255c4f)
# 5:  /system/lib/libark_jsruntime.so(+2558d7)
# 6:  /system/lib/libark_jsruntime.so(+fb7e7)
# 7:  /system/lib/libark_jsruntime.so(+23a85b)
# 8:  /system/lib/libark_jsruntime.so(+23d005)
# 9:  /system/lib/libark_jsruntime.so(+23cca7)
#10:  /system/lib/libark_jsruntime.so(+1db939)
#11:  /system/lib/libark_jsruntime.so(+2442b1)
#12:  /system/lib/libace.z.so(+d5fd03)
#13:  /system/lib/libace.z.so(+d3e3af)
#14:  /system/lib/libace.z.so(+d3e86b)
#15:  /system/lib/libace.z.so(+23f469)


【运行环境】
DevEvoStudio版本:3.1
SDK版本:3.2.12.6

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

精彩评论1

lpzhong

沙发 发表于 2024-3-22 14:18:23
此错误信息是加载napi的库失败,和ffmpeg这个三方库没有直接关系,与你napi注册时的配置相关。

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

返回顶部