I need to call a C# DLL from C++, and I followed this http://www.mono-project.com/Embedding_Mono http://www.mono-project.com/Embedding_Mono . This works on my PC, but now I need to replicate this functionality into android.
I have a NDK built shared library from which I would like to load the C# DLL. I tested the Hello M4A app example in the emulator (which installed Mono.Android.DebugRuntime and Mono.Android.Platform.ApliLevel_8) and that app works in the emulator. Using the "nm" tool i can see that libmonosgen-2.0.so (in Mono.Android.DebugRuntime) has the symbol mono_jit_init() which I need to initialize Mono Runtime so I can load my DLL. ( http://www.mono-project.com/Embedding_Mono#Initializing_the_Mono_runtime http://www.mono-project.com/Embedding_Mono#Initializing_the_Mono_runtime ) So at this point i'm able to use dlopen and get the symbol from libmonosgen-2.0.so, but when I try to initialize the domain ( domain = mono_jit_init (domain_name); ) this error occurs: *04-18 15:30:18.779: E/mono(468): The assembly mscorlib.dll was not found or could not be loaded. 04-18 15:30:18.779: E/mono(468): It should have been installed in the `/home/jon/Development/xamarin/mono/BUILD/armeabi/install/lib/mono/2.0/mscorlib.dll' directory.* What am I missing? From my understanding the Mono Shared Runtime installed on the emulator has everything mono supports packed in it..and I can see it works because it runs the Hello M4A app. Thanks for your time. -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Link-to-libmonosgen-2-0-so-in-emulator-tp5649643p5649643.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list [email protected] UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid
