2

我正在使用 Mono for Android 并遵循此页面上提到的说明:http: //file.emgu.com/wiki/index.php/Emgu_CV_for_Android但是当我在模拟器上运行应用程序时,它会引发以下异常:

Java.Lang.UnsatisfiedLinkError has been throwed Cannot load library: find_library[1199]: 37 'libopencv_highgui.so' failed to load previously

Java.Lang.UnsatisfiedLinkError:无法加载库:find_library[1199]:37 'libopencv_highgui.so' 之前在 Android.Runtime.JNIEnv.CallStaticVoidMethod 加载失败(IntPtr jclass,IntPtr jmethod,Android.Runtime.JValue[] parms)[ 0x00023] 在 /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.4-branch/9f7cbd60/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:973

在 /Users/builder/data/lanes/monodroid-mac-monodroid-4.2.4-branch/9f7cbd60/source/monodroid/src/Mono.Android 中的 Java.Lang.JavaSystem.LoadLibrary (System.String libName) [0x00034] /platforms/android-15/src/generated/Java.Lang.JavaSystem.cs:253

在 Emgu.CV.CvInvoke..cctor () [0x00000] 中:0

--- 托管异常堆栈跟踪结束 ---

java.lang.UnsatisfiedLinkError: 无法加载库: find_library[1199]: 37 'libopencv_highgui.so' 之前加载失败

  at java.lang.Runtime.loadLibrary(Runtime.java:370)

  at java.lang.System.loadLibrary(System.java:535)

  at

mono.android.view.View_OnClickListenerImplementor.n_onClick(本机方法)

  at

mono.android.view.View_OnClickListenerImplementor.onClick(View_OnClickListenerImplementor.java:29)

  at android.view.View.performClick(View.java:3511)

  at android.view.View$PerformClick.run(View.java:14105)

  at android.os.Handler.handleCallback(Handler.java:605)

  at android.os.Handler.dispatchMessage(Handler.java:92)

  at android.os.Looper.loop(Looper.java:137)

  at android.app.ActivityThread.main(ActivityThread.java:4424)

  at java.lang.reflect.Method.invokeNative(Native Method)

  at java.lang.reflect.Method.invoke(Method.java:511)

  at

com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

  at dalvik.system.NativeStart.main(Native Method)

这是 OpenCV-2.4.2 参考的截图
参考截图

4

0 回答 0