Compiling with Java on SGI
Randy Heiland
heiland at ncsa.uiuc.edu
Wed Sep 8 10:36:29 EDT 1999
> CC -n32 -mips3 -avoid_gp_overflow -g -DVTK_USE_NATIVE_IMAGING
-DVTK_USE_SPROC -DHAVE_SETMON -DVTK_WORDS_BIGENDIAN -ptall -no_prelink
-D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I. -I./../graphics
-DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../patented
-DVTK_USE_PATENTED -DVTK_USE_OGLR -I./../common -I/usr/java/include
-I/usr/java/include/irix -c java/vtkActor2DJava.cxx -o java/vtkActor2DJava.o
> "java/vtkActor2DJava.cxx", line 35: error(1020): identifier "jref" is
undefined
> extern "C" JNIEXPORT jint JNICALL
Java_vtk_vtkActor2D_RenderOverlay_11(JNIEnv *env, jobject obj,jref id0)
>
> I use a java version 1.1.6.
> An other question: does vtk support jdk version 1.2 ?
>
In ref to your error, I believe you need to make the following substitution:
in vtk/wrap/vtkWrapJava.c: "jref" -> "jobject"
--Randy
-----------------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://www.automatrix.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at gsao.med.ge.com>. For help, send message body containing
"info vtkusers" to the same address. Live long and prosper.
-----------------------------------------------------------------------------
More information about the vtkusers
mailing list