Re: [Mono-dev] Using .so file in Android Library Project and then using it in an Android App

2014-12-03 Thread Jonathan Pryor
On Dec 2, 2014, at 9:09 AM, Burhan Eyuboglu burhaneyubo...@gmail.com wrote: When I add libcyusb.so, I got this error: libcyusb.so is not a valid ELF executable Where do you get this error from? What's the overall context? I checked the library, libcyusb.so is not ELF, it is a linker, however

Re: [Mono-dev] Using .so file in Android Library Project and then using it in an Android App

2014-12-02 Thread Burhan Eyuboglu
When I add libcyusb.so, I got this error: libcyusb.so is not a valid ELF executable I checked the library, libcyusb.so is not ELF, it is a linker, however libcyusb.so.1 is ELF 64 bit sharerd object. How can add libcyusb.so.1? Because android accepts lib prefix and so suffix. 2014-11-28 12:32

Re: [Mono-dev] Using .so file in Android Library Project and then using it in an Android App

2014-11-28 Thread Burhan Eyuboglu
Now, I can add .so file into the csproj. However, a new error occured: libcyusb.so is not a valid ELF. I think while building libcyusb in linux, I should add Android as target OS. Is that true? If it is, how can I add it to the makefile? Do you know the commands for it? 2014-11-26 19:36

Re: [Mono-dev] Using .so file in Android Library Project and then using it in an Android App

2014-11-26 Thread Burhan Eyuboglu
I have created a lib file in the resources folder, and armeabi-v7a folder in the lib file and put the libcyusb.so there. When I look at the csproj file, it has changed like that: ItemGroup AndroidEmbeddedJavaLibrary Include=Resources\lib\armeabi-v7a\libcyusb.so / However, I'm still getting

Re: [Mono-dev] Using .so file in Android Library Project and then using it in an Android App

2014-11-26 Thread Rafael Teixeira
It should be AndroidNativeLibrary Include=Resources\lib\armeabi-v7a\libcyusb.so /, that is what Jonathan meant by choosing the action (you can change it on the properties window when selecting the item in the solution explorer), also it is not a good thing to put it inside the Resources folder, it

[Mono-dev] Using .so file in Android Library Project and then using it in an Android App

2014-11-18 Thread Burhan Eyuboglu
While running my code on an Android Device, it gives that error: [Mono] DllImport error loading library '/storage/emulated/0/Android/data/LibraryDenemesi.LibraryDenemesi/files/.__override__/libcylibusb.dll': 'Cannot load library: load_library(linker.cpp:746): library

Re: [Mono-dev] Using .so file in Android Library Project and then using it in an Android App

2014-11-18 Thread Jonathan Pryor
On Nov 18, 2014, at 10:05 AM, Burhan Eyuboglu burhaneyubo...@gmail.com wrote: While running my code on an Android Device, it gives that error: This is better asked on forums.xamarin.com... [Mono] DllImport error loading library