nagyistoce / jnaerator

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

No TestLibrary.java is generated when I try the SimpleMeaningfulExample #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

$ java -jar jnaerator-0.9.3-SNAPSHOT.jar -library Test Test.h -o . -v

What is the expected output? What do you see instead?

There should be a TestLibrary.java file.  What I see is:

$ ls -l
total 11824
-rw-r--r--@ 1 dspitzer  HOLLYWOOD\domain users      654 Nov 20 16:15 Test.h
-rw-r--r--  1 dspitzer  HOLLYWOOD\domain users   992493 Dec  3 10:58 Test.jar
-rw-r--r--  1 dspitzer  HOLLYWOOD\domain users        1 Dec  3 10:58 
_jnaerator.bridgesupport.h
-rw-r--r--  1 dspitzer  HOLLYWOOD\domain users      570 Dec  3 10:58 
_jnaerator.choices
-rw-r--r--  1 dspitzer  HOLLYWOOD\domain users      583 Dec  3 10:58 
_jnaerator.macros.cpp
-rw-r--r--  1 dspitzer  HOLLYWOOD\domain users      632 Dec  3 10:58 
_jnaerator.preprocessed.c
-rw-r--r--@ 1 dspitzer  HOLLYWOOD\domain users  5035045 Nov 26 10:32 
jnaerator-0.9.3-
SNAPSHOT.jar

What version of the product are you using? On what operating system?

jnaerator-0.9.3-SNAPSHOT.jar
java version "1.6.0_15"
Mac OS X 10.5.8

Please provide any additional information below.

Original issue reported on code.google.com by daryl.sp...@gmail.com on 3 Dec 2009 at 6:59

GoogleCodeExporter commented 9 years ago
The TestLibrary.java file is actually JNAerated *inside* the Test.jar file, in 
the test subdirectory (you can skip 
the Jar creation with -noJar).
I've done it this way so that IDEs such as Eclipse might be able to find the 
Java file in the lib's Jar and take the 
Javadoc out of it automatically.

Besides being apparently confusing, this behaviour has the downside of making 
the Jar slighly larger (and 
having the Java file inside is only useful at debug time).
I'll soon add a switch or two to allow a different behaviour (Java files 
outside the Jar or no Java file at all) and 
will then close your report :-)

Original comment by olivier.chafik@gmail.com on 3 Dec 2009 at 8:51

GoogleCodeExporter commented 9 years ago
I have simialr problem when tried on my laptop (windowXP) even after adding 
-noJar.  
see the attached file. I used jnaerator-0.9.3.jar.

I also tried JNAeratirStudio, see attached log.

what I do noticed is that my Laptop has no
C:\Program Files\Microsoft Visual Studio 9.0
C:\Program Files\Microsoft SDKs\Windows\v6.0A

it only has:
C:\Program Files\
28/01/2010  13:29    <DIR>          Microsoft ActiveSync
27/01/2010  02:12    <DIR>          microsoft frontpage
28/01/2010  14:35    <DIR>          Microsoft Office
17/02/2010  10:16    <DIR>          Microsoft Silverlight
12/07/2007  17:06    <DIR>          Microsoft SQL Server
23/02/2010  12:06    <DIR>          Microsoft Visual Studio
28/01/2010  13:28    <DIR>          Microsoft Works
28/01/2010  13:28    <DIR>          Microsoft.NET

appreciate any suggestion

Regards

Xiaofeng 

Original comment by eh200...@gmail.com on 19 Apr 2010 at 4:47

Attachments:

GoogleCodeExporter commented 9 years ago
Hi Xiaofeng,

Sorry I missed your comment for so long...
Does your similar problem have the same cause and solution as I've hinted in my 
comment above ? (if you click on "Show Jar", does it show something ?).

Otherwise for the MSVC++ path issue (if it's indeed blocking), could you please 
try and see where (if) your Windows SDK headers are located ? It's actually 
just to help including windows files (windows.h and MFC stuff, for instance), 
so it won't actually hurt in other cases.

Thanks,
Cheers
--
Olivier

Original comment by olivier.chafik@gmail.com on 23 Jul 2010 at 1:25

GoogleCodeExporter commented 9 years ago
Hi,
This issue moved to Github :
https://github.com/ochafik/nativelibs4java/issues/136

Thanks for not updating this page anymore and adding further comments on Github.
Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 1 Sep 2011 at 7:24

GoogleCodeExporter commented 9 years ago

Original comment by olivier.chafik@gmail.com on 1 Sep 2011 at 7:24