8 messages in net.java.dev.jna.usersRe: [jna-users] JNAerator : parses C ...
FromSent OnAttachments
Olivier ChafikFeb 15, 2009 11:51 pm 
Nikolas LotzFeb 16, 2009 2:31 am 
Olivier ChafikFeb 16, 2009 11:18 am 
Stefan EndrullisFeb 17, 2009 1:47 am 
Paul LoyFeb 17, 2009 1:54 am 
Stefan EndrullisFeb 17, 2009 2:30 am 
Timothy WallFeb 17, 2009 4:40 am 
Olivier ChafikFeb 23, 2009 5:13 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] JNAerator : parses C (and Objective-C) and outputs JNA (and Rococoa) interfacesActions...
From:Olivier Chafik (oliv@gmail.com)
Date:Feb 16, 2009 11:18:42 am
List:net.java.dev.jna.users

Hi Nikolas,

Thanks a lot for being the first unlucky bug reporter and for offering your help :-). Indeed there would be tons of things to do to handle Linux and Unices properly, your help is highly welcome (I added you to the project).

As for the null pointer exception that blew it, I've just uploaded a fixed JAR (where the default include path on anything not mac nor win32 is simply ".") :

http://ochafik.free.fr/Java/jnaerator.jar

I hope this time it's going to behave more properly :-) Cheers

2009/2/16 Nikolas Lotz <nlo@nde.ag>

JNAerator (hehe) is still very buggy and has many limitations but I think it might already be useful to JNA users who need to generate large interfaces (it knows about defines, enums, constants, structs, callbacks, converts comments to javadocs, has experimental expressions translation...).

I'm getting a NPE on Linux, because DEFAULT_INCLUDE_PATH isn't set:

if (SystemUtils.isMacOSX()) { [...] } else if (SystemUtils.isWindows()) { [...] }

=> DEFAULT_INCLUDE_PATH is NULL on other systems

I could create an issue or fix this if you add me (nikolas.lotz) to the list of developers. I could also add a few improvements for the unixish platforms in SystemUtils.

thanks for your efforts !

nikolas

Vorsitzende des Aufsichtsrates: Angelika Mozdzen Sitz und Registergericht: Hamburg, HRB 90934 Vorstand: Jens-U. Mozdzen USt-IdNr. DE 814 013 983