Re: [android-developers] Re: System.loadLibrary() failes in Android with UnsatisfiedLinkError
Hi, Thanks for your reply. But can you please tell me how can I compile the third party opensource library using NDK. In my application am using an opensource library called Jpcap, which provide RAR and .so files. I' just need to call these APIs from my application. But in those APIs they are trying to load a library Jpcap i.e. System.loadLibrary(jpcap) at this place am getting a linking error : * java.lang.UnsatisfiedLinkError: Cannot load library: link_image[1962]: 32 could not load needed library 'libpcap.so.0.9' for 'libjpcap.so' (load_library[1104]: Library 'libpcap.so.0.9' not found)* Please help me to resolve this issue. thanks regards, Vijay On Tue, May 31, 2011 at 9:42 PM, Chris Stratton cs07...@gmail.com wrote: On Tuesday, May 31, 2011 4:27:12 AM UTC-4, Viju wrote: I'm developing an application with an open source library (i.e. jpcap). You are unlikely to get this is to work even when you get the library ported, as android applications cannot readily gain the necessary access rights to the network interface. You will probably do better launching a stand alone executable as root, and capturing its output from java. That's not officially supported, but it does work at the moment on rooted devices. And many devices seem to ship not only with a copy of tcpdump, but a copy that runs itself as root. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: System.loadLibrary() failes in Android with UnsatisfiedLinkError
I recommend you to install cygwin along with Android NDK. Compile your native code using cygwin, refresh your project in Project Explorer then run the activity. Rgds/ Atul Prakash Singh On May 31, 1:36 pm, Vijay mail2vija...@gmail.com wrote: Can you please tellme How can I do that ? (i.e compiling it for ARM? I'm running my SDK in windows xp.? regards. Vijay On Tue, May 31, 2011 at 2:02 PM, Nikolay Elenkov nikolay.elen...@gmail.comwrote: On Tue, May 31, 2011 at 5:27 PM, Viju mail2vija...@gmail.com wrote: I have added the lib folder in my project which contains both jpcap.dll and libjpcap.so. Also I have given the Native library location to this lib folder. When I try to call this function System.loadLibrary(jpcap) it throws UnsatisfiedLinkError and the applications is getting crashed. You certainly don't need the dll. Did you compile libjpcap.so for Android (ARM)? -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: System.loadLibrary() failes in Android with UnsatisfiedLinkError
On Tuesday, May 31, 2011 7:26:07 AM UTC-4, Atul Prakash wrote: I recommend you to install cygwin along with Android NDK. Compile your native code using cygwin, refresh your project in Project Explorer then run the activity. http://groups.google.com/group/android-developers?hl=en Specifically, compile it using the android NDK which is an optional companion to the SDK. cygwin is not specifically needed for a basic build, though it's very useful for associated tasks. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en
[android-developers] Re: System.loadLibrary() failes in Android with UnsatisfiedLinkError
On Tuesday, May 31, 2011 4:27:12 AM UTC-4, Viju wrote: I'm developing an application with an open source library (i.e. jpcap). You are unlikely to get this is to work even when you get the library ported, as android applications cannot readily gain the necessary access rights to the network interface. You will probably do better launching a stand alone executable as root, and capturing its output from java. That's not officially supported, but it does work at the moment on rooted devices. And many devices seem to ship not only with a copy of tcpdump, but a copy that runs itself as root. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en