Click here to Skip to main content
11,494,851 members (67,570 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Mono C# Android EMGU
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 Blush | :O
I/MonoDroid(14146): at Java.Lang.JavaSystem.LoadLibrary (System.String libName) [0x00000] in Blush | :O
I/MonoDroid(14146): at Emgu.CV.CvInvoke..cctor () [0x00000] in Blush | :O
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 23:55pm
Edited 5-Jul-12 0:38am

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

  Print Answers RSS
0 Dnyaneshwar@Pune 692
1 Sergey Alexandrovich Kryukov 354
2 CHill60 293
3 Sascha Lefèvre 255
4 Nakul Chaudhari 236
0 Sergey Alexandrovich Kryukov 10,297
1 OriginalGriff 8,821
2 Sascha Lefèvre 3,864
3 Maciej Los 3,412
4 Richard Deeming 2,500

Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 5 Jul 2012
Copyright © CodeProject, 1999-2015
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