OpenHarmony开发者论坛

标题: IDE集成FFmpeg三方库开发NAPI调用失败 [打印本页]

作者: cole    时间: 2024-3-21 21:35
标题: IDE集成FFmpeg三方库开发NAPI调用失败
【问题描述】
参照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

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




欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/) Powered by Discuz! X3.5