5 messages in net.java.dev.jna.usersRe: [jna-users] some tip for mapping
FromSent OnAttachments
Daniele DellafioreFeb 18, 2008 12:58 pm.html
Timothy WallFeb 18, 2008 7:24 pm 
Daniele DellafioreFeb 19, 2008 12:40 am 
Timothy WallFeb 20, 2008 4:34 am 
Daniele DellafioreFeb 20, 2008 5:26 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [jna-users] some tip for mappingActions...
From:Daniele Dellafiore (ilde@gmail.com)
Date:Feb 20, 2008 5:26:34 am
List:net.java.dev.jna.users

On Feb 20, 2008 1:35 PM, Timothy Wall <twal@dev.java.net> wrote:

On Feb 19, 2008, at 3:41 AM, Daniele Dellafiore wrote:

Gpod gpod = (Gpod) Native.loadLibrary("libgpod.so.3.0.0", Gpod.class);

You can simply use "gpod" as the library name. JNA will figure out the rest and use the most recent version available.

I thought so, but using just "gpod" does not work... I have to use the complete name.

If the platform is OSX, the library should be named libgpod.dylib rather than libgpod.so. IIRC, checking for versions in the shared library name is a linux convention; at least JNA only performs filename version checking on linux.

in fact, i am using linux (ubuntu).