Click here to Skip to main content
12,998,423 members (88,420 online)
Rate this:
Please Sign up or sign in to vote.
I get error:
E/mono (14146): WARNING: The runtime version supported by this application is unavailable.
E/mono (14146): Using default runtime: v2.0.50727
I/monodroid-gc(14146): environment supports jni NewWeakGlobalRef
W/monodroid-gc(14146): GREF GC Threshold: 1800
I/dalvikvm-heap(14146): Grow heap (frag case) to 7.457MB for 1440016-byte allocation
I/mono-stdout(14146): Loaded opencv_core.
I/MonoDroid(14146): UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for Emgu.CV.CvInvoke ---> Java.Lang.UnsatisfiedLinkError: Exception of type 'Java.Lang.UnsatisfiedLinkError' was thrown.
I/MonoDroid(14146): at Android.Runtime.JNIEnv.CallStaticVoidMethod (IntPtr jclass, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00000] in <filename unknown="">:0
I/MonoDroid(14146): at Java.Lang.JavaSystem.LoadLibrary (System.String libName) [0x00000] in <filename unknown="">:0
I/MonoDroid(14146): at Emgu.CV.CvInvoke..cctor () [0x00000] in <filename unknown="">:0
I/MonoDroid(14146): --- End of managed exception stack trace ---
I/MonoDroid(14146): java.lang.UnsatisfiedLinkError: Cannot load library: find_library[1199]: 37 '' failed to load previously

from code :
 public void LoadImage (String imageName)
			int Width = 800;
			int Height = 600;
			byte[] buffer = new byte[Width * Height * 3];
			using (System.IO.Stream iStream = Assets.Open ("800x600.bmp")) {     
				iStream.Read (buffer, 0, buffer.Length);
			GCHandle handle = GCHandle.Alloc (buffer, GCHandleType.Pinned);		
			Image<Gray, Byte> grey = new Image<Gray, byte>(Width, Height, Width, handle.AddrOfPinnedObject());
			CvInvoke.cvCanny (grey, grey, 100, 60, 3);

Funny enough error shows on Image... while if I remove CvInvoke line it loads all .so files correctly
Help im stuck
Posted 4-Jul-12 22:55pm
Updated 4-Jul-12 23:38pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170622.1 | Last Updated 5 Jul 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100