hzzc1987 / jnaerator

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

NullPointerException processing C++ code #78

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Download Vamp SDK from http://vamp-plugins.org/develop.html
Header files: http://downloads.sourceforge.net/vamp/vamp-plugin-sdk-2.2.zip
Compiled DLL: 
http://downloads.sourceforge.net/vamp/vamp-plugin-sdk-2.1-binaries-win32-mingw.z
ip

2. Call jnaerator on the Host-DLL and one of the header files, e.g.
 java -jar jnaerator-0.9.6-shaded.jar
          -o generated -v -noJar -noComp
          vamp-hostsdk/vamp-hostsdk.h libvamp-hostsdk.dll

What is the expected output?
I expect generated Java interfaces. 

What do you see instead?
Messages 'File not found: string', 'File not found: vector', ...
Messages 'Failed to match any alternative with token'
A NullPointerException
See attached file for detailed error output.

What version of the product are you using? On what operating system?
Tried with jnaerator 0.95 and 0.96, Sun JDK 1.5 and 1.6, 32-bit and 64-bit on 
Windows XP 64bit 

Is the problem still present in the latest SVN version ? (you can easily
build from sources with these instructions :
http://code.google.com/p/javacl/wiki/Build)
I didn't get the build from SVN sources to work.

Please provide any additional information below.
I posted an entry to the jnaerator users forum under 
http://java.net/projects/jna/lists/users/archive/2011-02/message/17

Original issue reported on code.google.com by j...@ckware.net on 10 Feb 2011 at 6:45

Attachments:

GoogleCodeExporter commented 8 years ago
Hello,

Thanks for your report,
These errors are due to a relatively poor support for C++ in JNAerator.
Will investigate ASAP.

Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 18 Feb 2011 at 5:21

GoogleCodeExporter commented 8 years ago
Hello,

Did you install Microsoft Visual C++ (the Express edition is free) ? Just 
making sure you actually have the Windows SDK headers on your machine...

Cheers
--
zOlive

Original comment by olivier.chafik@gmail.com on 21 Feb 2011 at 10:44

GoogleCodeExporter commented 8 years ago
I didn't have it installed, didn't know I have to. Is it mentioned somewhere? 
Anyway, it is installed now with the environment variables for 
VISUAL_STUDIO_HOME and WINDOWS_SDK_HOME set respectively.

The NullPointerException does not occur anymore. Unfortunately, the interfaces 
are not generated either. Processing takes more than 15 minutes and crashes 
with an OutOfMemoryError. I used the JVM option -Xmx1024m without success. The 
output is attached.

Original comment by j...@ckware.net on 23 Feb 2011 at 5:41

Attachments:

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

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:26