Hi, 

I try to migrate a MonoTouch application to Mfa. With MonoTouch, I use
PInvoke on the sqlite3 library :

[DllImport("sqlite3", EntryPoint = "sqlite3_config")]
public static extern Result Config (ConfigOption option);

The PInvoke call works great with Android 2.3 (probably Android 2.2+), but
with Android 2.1, I get an EntryPointNotFoundException.

What I try to achieve in order to support Android 2.1, is to get the
libsqlite.so from my Android 2.3 device (which has the sqlite3_config
method) and bundle it into my Mfa application.

So, I added and renamed the libsqlite.so in my project
(lib/armeabi/libsqlitecustom.so) and set the file to AndroidNativeLibrary.

Now if a use :

[DllImport("libsqlitecustom", EntryPoint = "sqlite3_config")]
public static extern Result Config (ConfigOption option);

I always get a DllNotFoundException. I've tried with "libsqlitecustom.so",
"sqlitecustom", "sqlitecustom.so", "lib/armeabi/libsqlitecustom" etc

Is what I'm trying to achieve possible? 

--
View this message in context: 
http://mono-for-android.1047100.n5.nabble.com/System-DllNotFoundException-with-native-library-tp5636885p5636885.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

Reply via email to