hzzc1987 / jnaerator

Automatically exported from code.google.com/p/jnaerator
0 stars 0 forks source link

Includes not found on Linux systems #18

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Attempt to run JNAerator on a Linux system to generate JNA interfaces for a
library.  Rather than using the normal configuration for C code and
considering /usr/include the base directory for finding C header files
(along with /usr/include/c++ and its subdirectories for the C++ STL) such
that "include <x/y.h>" locates the file /usr/include/x/y.h, JNAerator
requires that each and every directory from which a header file is included
by the library code be passed to it via -I.  This is a PITA since a user
should not have to know what headers from the standard library their target
library uses and where to find those headers.

I'm using 0.4-b408 as available on the downloads with an Ubuntu Linux 9.04
system, with all dependencies installed.

I'll delve into the source of JNAerator and see if I can't submit a patch
to fix this.

Original issue reported on code.google.com by eligottlieb@gmail.com on 11 Jun 2009 at 8:53

GoogleCodeExporter commented 8 years ago
Hi eligottlieb,

Thanks a lot for this report, I've just committed a small change that tries to 
address this issue 
([http://code.google.com/p/jnaerator/source/detail?r=432 svn revision 432], 
with updated build 415 online), 
please tell me if it goes in the right direction and if you see what else to 
add to the path.

Best Regards

Original comment by olivier.chafik@gmail.com on 11 Jun 2009 at 11:50

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 12 Jun 2009 at 12:31

GoogleCodeExporter commented 8 years ago

Original comment by olivier.chafik@gmail.com on 12 Jun 2009 at 12:41

GoogleCodeExporter commented 8 years ago
As of 435 this does not (yet) work as intended, path and subdirectories need to 
be
declared with multiple -I <path> -I <path2> ....

Original comment by everf...@gmail.com on 13 Jun 2009 at 8:32

GoogleCodeExporter commented 8 years ago
Hi, 

Is it fixed by today's fix for issue 20 ?
http://code.google.com/p/jnaerator/issues/detail?id=20

Regards 

Original comment by olivier.chafik@gmail.com on 13 Jun 2009 at 6:13

GoogleCodeExporter commented 8 years ago
Cool, thanks !

Original comment by olivier.chafik@gmail.com on 15 Jun 2009 at 9:00