View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001026VTK(No Category)public2004-08-03 12:172011-01-13 17:00
ReporterMathieu Malaterre 
Assigned ToMathieu Malaterre 
PrioritylowSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0001026: VTK and java wrapping on Mac
DescriptionThanks 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)
TagsNo tags attached.
Project
Type
Attached Files

 Relationships

  Notes
(0001383)
Mathieu Malaterre (developer)
2004-08-17 12:23

$ cvs ci Rendering/CMakeLists.txt Common/vtkJavaAwt.h /opt/VTK/VTK
Checking in Rendering/CMakeLists.txt;
/cvsroot/VTK/VTK/Rendering/CMakeLists.txt,v <-- CMakeLists.txt
new revision: 1.190; previous revision: 1.189
done
Checking in Common/vtkJavaAwt.h;
/cvsroot/VTK/VTK/Common/vtkJavaAwt.h,v <-- vtkJavaAwt.h
new revision: 1.23; previous revision: 1.22
done

 Issue History
Date Modified Username Field Change
2010-11-29 17:59 Mathieu Malaterre Source_changeset_attached => VTK master 0db0363e
2011-01-13 17:00 Source_changeset_attached => VTK master a2bd8391
2011-01-13 17:00 Source_changeset_attached => VTK master 020ef709
2011-06-16 13:11 Zack Galbreath Category => (No Category)


Copyright © 2000 - 2018 MantisBT Team