[vtkusers] Cone.java example hangs on Mac OS 10.3.9
Jennifer West
jennifer.lorraine.west at gmail.com
Wed Aug 8 13:12:24 EDT 2007
So I finally got things working, if in a somewhat convoluted manner.
The problem does seem to have to do with the fact that I am using OS 10.3.9.
I tried compiling everything on a G5 running 10.4 and the Cone.java example
did run.
So I compiled it on a G5 with the MACOSX_DEPLOYMENT_TARGET=10.3 and then
copied the bin directory to my laptop. I replaced the old bin folder with
the new one in the same path on the laptop (i.e. the path had to be exactly
the same: /Users/jennifer/Development/vtkbuild/bin)
I also had to replace the vtk.jar file in the new bin directory with the one
that I compiled on my laptop (since the versions of java are different).
I am not setting any DYLD_LIBRARY_PATH or related environment variables.
If I put the Cone.java file right into the bin folder and run it with:
java -classpath vtk.jar:. Cone
then everything works!
I tried moving the Cone file to a new location, but I started getting
library problems again. However, everything worked again if I copied all the
libvtk* files into the folder with Cone.java -- as long as a copy of the
libraries also remained in the bin folder as well.
I haven't worked out these library issues yet - maybe it has something to do
with compiling with rpath set to OFF.
In any case, after quite a lot of struggling, I now at least have something
that is functional...!
Thanks to everyone for the suggestions.
Jennifer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20070808/d3aa15de/attachment.htm>
More information about the vtkusers
mailing list