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

Burhan Eyuboglu burhaneyuboglu at gmail.com
Fri Dec 5 15:06:53 UTC 2014


As far as I know, there is a difference between linux arm and android arm.
Which tool chain should we use to compile libcyusb.so for Xamarin.Android?

2014-12-03 16:02 GMT+02:00 Agustin Gimenez <geniwab at gmail.com>:

> Android devices are (mostly) ARM and your library is x86-64, so you must
> compile it for ARM processor.
>
> Cheers.
>
> 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/20141205/442c6c04/attachment.html>


More information about the Mono-list mailing list