用于Android的Emgu CV抛出异常Java.Lang.UnsatisfiedLinkError

时间:2012-08-21 18:27:51

标签: opencv xamarin.android emgucv

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

  

抛出了Java.Lang.UnsatisfiedLinkError无法加载库:   find_library [1199]:37'libopencv_highgui.so'无法加载   先前

     

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

     

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

     

在Emgu.CV.CvInvoke..cctor()[0x00000] in: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参考的截图 Reference Screenshot

0 个答案:

没有答案