include_directories(${NATIVERENDER_ROOT_PATH}
${NATIVERENDER_ROOT_PATH}/include)
# 增加hiloglib库引用
find_library(
# Sets the name of the path variable.
hilog-lib
# Specifies the name of the NDK library that
# you want CMake to locate.
hilog_ndk.z
)
**PS:附件是这个用例里的代码和3.2,4.0里扫出的ndk,有需要自取。**
[/md]作者: yjka 时间: 2024-4-3 16:25
CMakeList.txt 中使用下面的配置还是会报错
# 增加hiloglib库引用
find_library(
# Sets the name of the path variable.
hilog-lib
# Specifies the name of the NDK library that
# you want CMake to locate.
hilog_ndk.z
)
改成
target_link_libraries(libName PUBLIC libace_napi.z.so libhilog_ndk.z.so)
不会报错作者: 深开鸿_王石 时间: 2024-4-7 17:11
回复 yjka: 这么神奇吗?我ide版本是Build Version: 4.0.0.600, built on October 17, 2023,是不是这个有区别,我这边这样用都是okay的,sample仓也是这么用的作者: yjka 时间: 2024-4-7 19:49
回复 深开鸿_王石: 我这边环境是
DevEco Studio 3.1.1 Release
Build Version: 3.1.0.501, built on June 20, 2023
API10
需要修改后才行