[vtkusers] Compiling VTK Java wrappers on MacOSX Panther

David Clunie dclunie at dclunie.com
Tue Aug 3 23:25:15 EDT 2004


Mathieu Malaterre wrote:

 > 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

Hi Mathieu

Actually, I haven't got as far as trying the DICOM reader yet,
and in all likelihood would probably use my own Java DICOM
reader anyway, just because I am familiar with it, though I
will try your reader just to see how it goes.

However, despite being able to get the VTK to compile on
Panther with 1.4.2, I can't actually get the Java wrappers
to work this way, for example, getting:

[helgray:Tutorial/Step1/Java] dclunie% javac -classpath ../../../../bin/vtk.jar Cone.java
[helgray:Tutorial/Step1/Java] dclunie% java -classpath ../../../../bin/vtk.jar:. -Djava.library.path=../../../../bin Cone
2004-08-03 07:08:06.910 java[4319] *** _NSAutoreleaseNoPool(): Object 0xa2dc932c of class NSCFString autoreleased with no pool in place - just leaking
2004-08-03 07:08:06.916 java[4319] *** _NSAutoreleaseNoPool(): Object 0xa2dc91cc of class NSCFString autoreleased with no pool in place - just leaking
...
2004-08-03 07:08:07.245 java[4319] *** _NSAutoreleaseNoPool(): Object 0x344780 of class NSView autoreleased with no pool in place - just leaking
Bus error
[helgray:Tutorial/Step1/Java] dclunie%

Interestingly enough, if instead of the changes I suggested, I just
comment out the inclusion of vtkJavaAwt.h in vtkRenderWindowJava.cxx,
the regression tests work, if and only if I choose Carbon rather
than Cocoa, and I can compile and execute all of the tutorial exercises
up until Step 5, which just hangs forever.

david




More information about the vtkusers mailing list