MNN icon indicating copy to clipboard operation
MNN copied to clipboard

Android Demo 运行失败

Open bylanhao opened this issue 4 years ago • 1 comments

平台(如果交叉编译请再附上交叉编译目标平台):

Platform(Include target platform as well if cross-compiling):

Android P arm64

Github版本:

Github Version:

MNN-v1.02

编译方式:

使用project/Android下面的脚本编译完Android下的mnn 库和benchmark,在板子上可以运行benchmark,OpenCL和OpenGL都可以。 然后用这个Demo跑OpenCL的用例。

# logcat:
I/MNNJNI  (15643): Create type=3 backend, numThread 4
E/linker  (15643): library "/system/vendor/lib64/libOpenCL.so" ("/vendor/lib64/egl/libGLES_mali.so") needed or dlopened by "/data/app/com.taobao.android.mnndemo-577123f2CBe4d1cBabFaa2EW==/lib/arm64/libMNN_CL.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/com.taobao.android.mnndemo-577123f2CBe4d1cBabFaa2EW==/lib/arm64:/data/app/com.taobao.android.mnndemo-577123f2CBe4d1cBabFaa2EW==/base.apk!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/com.taobao.android.mnndemo"]
E/linker  (15643): library "/system/vendor/lib64/egl/libGLES_mali.so" ("/vendor/lib64/egl/libGLES_mali.so") needed or dlopened by "/data/app/com.taobao.android.mnndemo-577123f2CBe4d1cBabFaa2EW==/lib/arm64/libMNN_CL.so" is not accessible for the namespace: [name="classloader-namespace", ld_library_paths="", default_library_paths="/data/app/com.taobao.android.mnndemo-577123f2CBe4d1cBabFaa2EW==/lib/arm64:/data/app/com.taobao.android.mnndemo-577123f2CBe4d1cBabFaa2EW==/base.apk!/lib/arm64-v8a", permitted_paths="/data:/mnt/expand:/data/data/com.taobao.android.mnndemo"]
I/MNNJNI  (15643): OpenCL init error , callback ... 
请问这里报链接libOpenCL失败是什么问题?要怎么解决?
谢谢

bylanhao avatar Aug 14 '20 07:08 bylanhao

这个问题有人解决吗

minushuang avatar Aug 20 '22 07:08 minushuang

DEMO已更新:https://github.com/alibaba/MNN/pull/2244

wangzhaode avatar Mar 01 '23 02:03 wangzhaode