HarmonyOS 鸿蒙Next CmakeList无法链接ffmpeg库

发布于 1周前 作者 vueper 来自 鸿蒙OS

HarmonyOS 鸿蒙Next CmakeList无法链接ffmpeg库

set(EXTRA_DIR “${NATIVERENDER_ROOT_PATH}/third_party”)
set(EXTRA_FFMPEG_DIR “${EXTRA_DIR}/ffmpeg/harmony/${OHOS_ARCH}”)

add_library(ffmpeg SHARED IMPORTED)
set_target_properties(ffmpeg PROPERTIES IMPORTED_LOCATION ${EXTRA_FFMPEG_DIR}/libffmpeg.so)


target_link_libraries(XXX PUBLIC ace_napi.z
native_media_core
native_media_adec
native_media_vdec
native_media_avdemuxer
native_media_avsource
native_media_codecbase
ffmpeg
${libace-lib}
)

[invalidDomain]Open absolute_path library: check ns accessible failed, pathname src/main/cpp/third_party/ffmpeg/harmony/arm64-v8a/libffmpeg.so namespace moduleNs_default.

src/main/cpp/third_party/ffmpeg/harmony/arm64-v8a/libffmpeg.so: (needed by /data/storage/el1/bundle/libs/arm64/libvnsp.so)


关于HarmonyOS 鸿蒙Next CmakeList无法链接ffmpeg库的问题,您也可以访问:https://www.itying.com/category-93-b0.html 联系官网客服。

2 回复
SDK对应的版本是什么?手机的版本是多少?

有要学HarmonyOS AI的同学吗,联系我:https://www.itying.com/goods-1206.html

回到顶部