gpt4 book ai didi

android - 无法为 opencv android 加载信息库

转载 作者:太空宇宙 更新时间:2023-11-03 23:02:12 24 4
gpt4 key购买 nike

从 git 获取 openv for android 并编译它后,我尝试运行第 3 个教程,问题是我遇到了 opencv drror:无法加载 opencv 的信息库

02-18 12:04:26.959: W/System.err(9329): java.lang.UnsatisfiedLinkError: Couldn't load opencv_java: findLibrary returned null
02-18 12:04:26.959: W/System.err(9329): at java.lang.Runtime.loadLibrary(Runtime.java:365)
02-18 12:04:26.959: W/System.err(9329): at java.lang.System.loadLibrary(System.java:535)
02-18 12:04:26.959: W/System.err(9329): at org.opencv.android.StaticHelper.loadLibrary(StaticHelper.java:54)
02-18 12:04:26.959: W/System.err(9329): at org.opencv.android.StaticHelper.initOpenCVLibs(StaticHelper.java:85)
02-18 12:04:26.964: W/System.err(9329): at org.opencv.android.StaticHelper.initOpenCV(StaticHelper.java:29)
02-18 12:04:26.964: W/System.err(9329): at org.opencv.android.OpenCVLoader.initDebug(OpenCVLoader.java:26)
02-18 12:04:26.964: W/System.err(9329): at org.opencv.samples.tutorial3.Sample3Native.<clinit>(Sample3Native.java:27)
02-18 12:04:26.964: W/System.err(9329): at java.lang.Class.newInstanceImpl(Native Method)
02-18 12:04:26.964: W/System.err(9329): at java.lang.Class.newInstance(Class.java:1319)
02-18 12:04:26.964: W/System.err(9329): at android.app.Instrumentation.newActivity(Instrumentation.java:1068)
02-18 12:04:26.964: W/System.err(9329): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2015)
02-18 12:04:26.964: W/System.err(9329): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2125)
02-18 12:04:26.964: W/System.err(9329): at android.app.ActivityThread.access$600(ActivityThread.java:140)
02-18 12:04:26.964: W/System.err(9329): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1227)
02-18 12:04:26.964: W/System.err(9329): at android.os.Handler.dispatchMessage(Handler.java:99)
02-18 12:04:26.964: W/System.err(9329): at android.os.Looper.loop(Looper.java:137)
02-18 12:04:26.964: W/System.err(9329): at android.app.ActivityThread.main(ActivityThread.java:4898)
02-18 12:04:26.964: W/System.err(9329): at java.lang.reflect.Method.invokeNative(Native Method)
02-18 12:04:26.964: W/System.err(9329): at java.lang.reflect.Method.invoke(Method.java:511)
02-18 12:04:26.964: W/System.err(9329): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1008)
02-18 12:04:26.964: W/System.err(9329): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:775)
02-18 12:04:26.964: W/System.err(9329): at dalvik.system.NativeStart.main(Native Method)

但是当我尝试将 libopencv_java 和 libopencv_info 复制到 lib/arm7v 时,它会被 eclipse 自动删除!但 libnative 相机还可以任何想法 ?

最佳答案

原来启用静态链接会阻止共享库管理,主要是libopencv_java和libopencv_info库不会添加到输出中,为了解决我手动加载这两个库的问题。

关于android - 无法为 opencv android 加载信息库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14934014/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com