[vtkusers] Trouble building VTK with Java wrapping enabled.

John Powell john.powell at us.cd-adapco.com
Wed Oct 7 11:06:54 EDT 2009


I'm using CMake to build VTK with Java wrapping enabled.
Has anyone seen errors like the following using CMake to build VTK with 
Java wrapping enabled?
What could I be doing wrong?
Thanks,
John

...
ISO C++ forbids declaration of `CallLongMethodA' with no type
.../jdk1.6.0_16/include/jni.h:321: error: `int 
JNINativeInterface_::jlong(int*)' and `int 
JNINativeInterface_::jlong(int*)' cannot be overloaded
.../jdk1.6.0_16/include/jni.h:323: error: expected `)' before '*' token
...
.../jdk1.6.0_16/include/jni.h:349: error: expected `)' before '*' token
.../jdk1.6.0_16/include/jni.h:353: error: expected `)' before '*' token
.../jdk1.6.0_16/include/jni.h:362: error: `JNICALL' has not been declared
.../jdk1.6.0_16/include/jni.h:363: error: ISO C++ forbids declaration of 
`jbyte' with no type
.../jdk1.6.0_16/include/jni.h:363: error: `jbyte' declared as function 
returning a function
.../jdk1.6.0_16/include/jni.h:363: error: ISO C++ forbids declaration of 
`CallNonvirtualByteMethod' with no type
.../jdk1.6.0_16/include/jni.h:363: error: `int 
JNINativeInterface_::jbyte(int*)' and `int 
JNINativeInterface_::jbyte(int*)' cannot be over ....
....





More information about the vtkusers mailing list