[vtkusers] VTK and linux: jawt blues

Michael Elbaum Michael.Elbaum at weizmann.ac.il
Fri Jul 9 04:45:13 EDT 2004


Hi. very noobie question:    I'm trying to install VTK to use the
plugins with ImageJ. I need the java wrappers. When I include them in
the cmake config, I get the same complaints that have appeared on this
list concerning OSX. It doesn't find jawt.h and jni_md.h (which I
thought was just for Windows). I copied these off a website from Sun,
but it didn't help. The compile crash from make follows. I also saw on
this site that these come from j3dev. When I looked for that at Sun it
appeared only for Windows and Solaris. Will I be able to use VTK/java on
Linux at all? I'm using j2re_1.4.2_01 and VTK-4.2.

thanks,
Michael



make dies with:

Building object file vtkRenderWindowJava.o...
In file included from
/usr/local/VTK/Rendering/vtkRenderWindowJava.cxx:1141:
/usr/local/VTK/Common/vtkJavaAwt.h:19:21: jawt_md.h: No such file or
directory
In file included from
/usr/local/VTK/Rendering/vtkRenderWindowJava.cxx:1141:
/usr/local/VTK/Common/vtkJavaAwt.h: In function `jint
   Java_vtk_vtkPanel_RenderCreate(JNIEnv*, __jobject*, __jobject*)':
/usr/local/VTK/Common/vtkJavaAwt.h:26: `JAWT' undeclared (first use this
   function)
/usr/local/VTK/Common/vtkJavaAwt.h:26: (Each undeclared identifier is
reported
   only once for each function it appears in.)
/usr/local/VTK/Common/vtkJavaAwt.h:26: parse error before `;' token
/usr/local/VTK/Common/vtkJavaAwt.h:27: `JAWT_DrawingSurface' undeclared
(first
   use this function)
/usr/local/VTK/Common/vtkJavaAwt.h:27: `ds' undeclared (first use this
   function)
/usr/local/VTK/Common/vtkJavaAwt.h:28: `JAWT_DrawingSurfaceInfo'
undeclared
   (first use this function)
/usr/local/VTK/Common/vtkJavaAwt.h:28: `dsi' undeclared (first use this
   function)
/usr/local/VTK/Common/vtkJavaAwt.h:36: `awt' undeclared (first use this
   function)
/usr/local/VTK/Common/vtkJavaAwt.h:36: `JAWT_VERSION_1_3' undeclared
(first use
   this function)
/usr/local/VTK/Common/vtkJavaAwt.h:37: `JAWT_GetAWT' undeclared (first
use this
   function)
/usr/local/VTK/Common/vtkJavaAwt.h:57: `JAWT_LOCK_ERROR' undeclared
(first use
   this function)
/usr/local/VTK/Common/vtkJavaAwt.h:91: `JAWT_X11DrawingSurfaceInfo'
undeclared
   (first use this function)
/usr/local/VTK/Common/vtkJavaAwt.h:91: `dsi_x11' undeclared (first use
this
   function)
/usr/local/VTK/Common/vtkJavaAwt.h:92: parse error before `)' token
/usr/local/VTK/Common/vtkJavaAwt.h: In function `jint
   Java_vtk_vtkPanel_Lock(JNIEnv*, __jobject*)':
/usr/local/VTK/Common/vtkJavaAwt.h:123: parse error before `;' token
/usr/local/VTK/Common/vtkJavaAwt.h: In function `jint
   Java_vtk_vtkPanel_UnLock(JNIEnv*, __jobject*)':
/usr/local/VTK/Common/vtkJavaAwt.h:168: parse error before `;' token
make[3]: *** [vtkRenderWindowJava.o] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Rendering] Error 2
make: *** [default_target] Error 2




More information about the vtkusers mailing list