[vtkusers] building vtk with java 1.4 on mac os x

Tobias tobias.straub at lmu.de
Sat Mar 29 03:10:10 EST 2003


Am Freitag, 28.03.03 um 23:38 Uhr schrieb Peter J Carr:

> I am building vtk with java wrapping on Mac OS X (10.2.4). I recently 
> installed Java 1.4 on my system. When I build VTK I get a file not 
> found error when looking for jni.h.
> I am not sure the exact problem. Does anyone have a suggestion?
>
> Thanks,
> Peter Carr
>
> _______________________________________________
> This is the private VTK discussion list. Please keep messages 
> on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>

I don't know if the standard Apple Java 1.4-Update does include the 
developer update, could this be your problem? Maybe try to get the JAVA 
1.4 developer update before building the java wrapping. Anyway, 
JAVA_INCLUDE_PATH should point to:
/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers
at least the build (partially) worked for me.

BUT I get a problem -later- with the Java-build:
[…]
Building Java Test 
/usr/local/src/vtkbuild/Wrapping/Java/TestVTKCanvas.class...
/usr/local/src/VTK/Wrapping/Java/vtk/vtkCanvas.java:12: cannot resolve 
symbol
symbol  : class vtkPlaneWidget
location: class vtk.vtkCanvas
   protected vtkPlaneWidget pw = new vtkPlaneWidget();
             ^
/usr/local/src/VTK/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve 
symbol
symbol  : class vtkBoxWidget
location: class vtk.vtkCanvas
   protected vtkBoxWidget bw = new vtkBoxWidget();
             ^
/usr/local/src/VTK/Wrapping/Java/vtk/vtkCanvas.java:12: cannot resolve 
symbol
symbol  : class vtkPlaneWidget
location: class vtk.vtkCanvas
   protected vtkPlaneWidget pw = new vtkPlaneWidget();
                                     ^
/usr/local/src/VTK/Wrapping/Java/vtk/vtkCanvas.java:13: cannot resolve 
symbol
symbol  : class vtkBoxWidget
location: class vtk.vtkCanvas
   protected vtkBoxWidget bw = new vtkBoxWidget();
                                   ^
4 errors
make[3]: *** 
[/usr/local/src/vtkbuild/Wrapping/Java/TestVTKCanvas.class] Error 1
make[2]: *** [default_target] Error 2
make[1]: *** [default_target_Wrapping_Java] Error 2
make: *** [default_target] Error 2

I'm using OS X 10.2.4, cmake-1.6.6, very recent (yesterdays) CVS VTK. 
Python/Tcl/Carbon compile w/o problems.

Tobias



More information about the vtkusers mailing list