[Mono-list] Using .so file in Android Library

Agustin Gimenez geniwab at gmail.com
Wed Dec 3 14:02:00 UTC 2014

Android devices are (mostly) ARM and your library is x86-64, so you must
compile it for ARM processor.


2014-12-03 14:47 GMT+01:00 Burhan Eyuboglu <burhaneyuboglu at gmail.com>:

> I have a native library named libcyusb.so, I need to use it in the Android
> Library, I have added it to the project, and made it Build Action as
> EmbeddedNativeLibrary.
> In my Android Library Project, there was no lib file, so I have created a
> lib file and armeabi-v7a file into the lib file. (lib/armeabi-v7a) Then, I
> have put the libcyusb.so to that directory.
> When I run the project, it gives that error:
> libcyusb.so is not a valid ELF executable.
> When I check libcyusb.so's output, it is:
> libcyusb.so: ELF 64-bit LSB shared object, x86-64, version 1(SYSV),
> dynamically linked, BuildID[sha1]=eea583b4963ed7b949715e43f88714b58af23725,
> not stripped
> I need to know, why it is not valid. Am I doing something wrong?
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-list/attachments/20141203/12a81e20/attachment.html>

More information about the Mono-list mailing list