Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.UnsatisfiedLinkError: dlopen failed: library "libvulkan.so" not found #26

Open
leo-andr opened this issue Jul 16, 2021 · 2 comments

Comments

@leo-andr
Copy link

这个不支持低版本的手机吗
用26以下的手机会报错 java.lang.UnsatisfiedLinkError: dlopen failed: library "libvulkan.so" not found

@wsb0617
Copy link

wsb0617 commented Dec 16, 2021

用26以下的手机会报错 java.lang.UnsatisfiedLinkError: dlopen failed: library "libvulkan.so" not found

    detector.initModel(assets, true)

也遇到了这个问题,请问是怎么解决呢

@xiangweizeng
Copy link
Owner

vulkan android7.0引入支持的, 较低版本可以使用cpu版ncnn, 并去掉gpu部分代码即可

  1. 可以采用cpu版的ncnn,下载地址是:https://github.com/Tencent/ncnn/releases ncnn-20211208-android.zip
  2. 可以自己交叉编译ncnn库
  3. 需要调整部分cpp代码,去掉gpu支持部分

以上可以作为参考,
谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants