OpenHarmony开发者论坛

标题: 使用MindSpore Lite Native API开发AI应用 c++链接library -lmindspore_lite_ndk的问题 [打印本页]

作者: wakaka    时间: 2024-3-21 11:41
标题: 使用MindSpore Lite Native API开发AI应用 c++链接library -lmindspore_lite_ndk的问题
[md]![image.png](https://forums-obs.openharmony.c ... jh937q6k330k70q.png "image.png")

开发环境:rk3568     烧录的是每日构建Dayu200  OpenHarmony4.0release的镜像

环境OpenHarmony4.0 release   sdk 9 (配置不了sdk10很麻,不知道怎么搞)    项目native c++

参考代码cmakelist.txt:

```cmake
# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(ai_app)

set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include)

#add_library(entry SHARED hello.cpp)
add_library(entry SHARED mslite_napi.cpp)
target_link_libraries(entry PUBLIC libace_napi.z.so)
target_link_libraries(entry PUBLIC hilog_ndk.z)
target_link_libraries(entry PUBLIC rawfile.z)
target_link_libraries(entry PUBLIC ace_napi.z)
target_link_libraries(entry PUBLIC mindspore_lite_ndk) # 链接MindSpore Lite动态库。


```

查看了system/lib/module/ai的动态链接库

![image.png](https://forums-obs.openharmony.c ... h4p0kkzbg3h0kdg.png "image.png")

没有lmindspore_lite_ndk.so

lib的动态链接库里只有

![image.png](https://forums-obs.openharmony.c ... r8aywdd8h3fcc6r.png "image.png")

问题:去哪里可以获取lmindspore_lite_ndk.so

代码参照开发文档:

https://docs.openharmony.cn/page ... nes-based-native.md
[/md]




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