[vtkusers] Compiling VTK Java wrappers on MacOSX Panther

Mathieu Malaterre mathieu.malaterre at kitware.com
Tue Aug 3 12:18:53 EDT 2004


David,

   Thanks a lot for the bug report + patch. I have entered this as bug #1026 in our bug tracker:

http://vtk.org/Bug/bug.php?op=show&bugid=1026

   Are you trying VTK for the DICOM reader ?

Mathieu

> 
> Thanks for the various helpful suggestions.
> 
> I made the following two changes and at least it compiles
> now (whether or not it works is another matter, TBD).
> 
> Also, one needs to use COCOA and not CARBON.
> 
> This change allows it to compile the Objective C JAWT header:
> 
> Index: Rendering/CMakeLists.txt
> ===================================================================
> RCS file: /cvsroot/VTK/VTK/Rendering/CMakeLists.txt,v
> retrieving revision 1.185
> diff -r1.185 CMakeLists.txt
> 461a462,465
>  >
>  > IF(APPLE AND VTK_WRAP_JAVA)
>  >   ADD_DEFINITIONS("-ObjC++")
>  > ENDIF(APPLE AND VTK_WRAP_JAVA)
> 
> This change accounts for the change in Apple's jawt_md.h
> for 1.4.2 whether the point is to a cocoaViewRef rather
> than a cocoaWindowRef
> 
> Index: Common/vtkJavaAwt.h
> ===================================================================
> RCS file: /cvsroot/VTK/VTK/Common/vtkJavaAwt.h,v
> retrieving revision 1.22
> diff -r1.22 vtkJavaAwt.h
> 111c111,112
> <   temp0->SetWindowId((void *)dsi_mac->cocoaWindowRef);
> ---
>  >   //temp0->SetWindowId((void *)dsi_mac->cocoaWindowRef);
>  >   temp0->SetWindowId((void *)dsi_mac->cocoaViewRef);          // DAC. 20040731 for Panther and 1.4.2 (no such thing as cocoaWindowRef)
> 
> david
> 
> _______________________________________________
> 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://www.vtk.org/mailman/listinfo/vtkusers
> 





More information about the vtkusers mailing list