On my PPC Mac, to get things to work properly with java wrapped VTK, I have to specify JAVA_AWT_LIBRARY as "-framework JavaEmbedding"<br><br>If I recall correctly, though, JavaEmbedding is being deprecated by Apple. I don't know if it's presently supported at all on the Intel Macs... I also don't know what the AWT library is supposed to become once the JavaEmbedding framework is completely gone and *really* deprecated.
<br><br>If you can find/figure out what the proper library to link against is for Java AWT applications on Intel Macs and get that information to me, I will do what I can to make this experience less frustrating for the next person to try it.
<br><br>Anybody else who's listening know what the migration path is for folks presently using JavaEmbedding for AWT support?<br><br>Sorry it's been such a battle for you.<br><br>Hope this helps,<br>David Cole<br>
<br><br><div><span class="gmail_quote">On 1/17/07, <b class="gmail_sendername">Kenneth Sloan</b> <<a href="mailto:kennethrsloan@gmail.com">kennethrsloan@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Current status:<br><br>Starting with the latest official release (NOT the CVS repository), I<br>started with an "accept all defaults" build and slowly changed this<br>to get to this point:<br><br><br><br> Page 1 of 1
<br>BUILD_EXAMPLES ON<br>BUILD_SHARED_LIBS ON<br>CMAKE_BACKWARDS_COMPATIBILITY 2.4<br>CMAKE_BUILD_TYPE<br>CMAKE_INSTALL_PREFIX /usr/local<br>CMAKE_OSX_ARCHITECTURES i386
<br>CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.4u.sdk<br>PYTHON_DEBUG_LIBRARY -framework Python<br>PYTHON_INCLUDE_PATH /usr/include/python2.3<br>PYTHON_LIBRARY /usr/lib/libpython2.3.dylib
<br>VTK_DATA_ROOT /Users/kennethsloan/kitware/<br>VTK-5-0-2/VTKData<br>VTK_USE_CARBON OFF<br>VTK_USE_COCOA ON<br>VTK_USE_PARALLEL OFF<br>VTK_USE_RENDERING ON
<br>VTK_USE_RPATH OFF<br>VTK_USE_X OFF<br>VTK_WRAP_JAVA ON<br>VTK_WRAP_PYTHON ON<br>VTK_WRAP_TCL ON<br><br>make<br>...<br>[ 65%] Building CXX object Rendering/CMakeFiles/vtkRenderingJava.dir/
<br>vtkCocoaRenderWindowJava.o<br>Linking CXX shared library ../bin/libvtkRenderingJava.dylib<br>ld: Undefined symbols:<br>_JAWT_GetAWT<br>/usr/bin/libtool: internal link edit command failed<br>make[2]: *** [bin/libvtkRenderingJava.5.0.2.dylib] Error 1
<br>make[1]: *** [Rendering/CMakeFiles/vtkRenderingJava.dir/all] Error 2<br>make: *** [all] Error 2<br><br><br><br>So, I'm back to square one. Tonight, I'll try some of the fixes<br>suggested in previous e-mails, having to do with specifying the path
<br>to the Java AWT library.<br><br>Now, at least, I have a complete log of what I did to get to this<br>point, and the ONE change to ccmake's options that broke things. The<br>build immediately before this one had VTK_WRAP_JAVA OFF, and
<br>everything else was exactly the same. That build completed with no<br>errors.<br><br>Java itself (jre and jdk) are running just fine (I have a number of<br>Java programs developed completely on this machine - all compile and
<br>execute as expected). But, I'm a novice with the Mac OS X<br>conventions on where things are kept, and even more of a novice with<br>ccmake and friends (so I need a lot of handholding to make changes).<br><br>Thanks to everyone who has helped so far. I'm back where I started,
<br>but I think I understand the mechanisms just a little bit better (so<br>I might understand your suggestions) AND we have a demonstration that<br>things build correctly on this machine with everything EXCEPT Java -<br>
and break when we turn Java on.<br><br>On the back burner, for the moment, is the question of why the<br>current CVS version of the source does not compile on my machine.<br>I'm (personally) not going to care about that for the moment - except
<br>that I don't think the suggestion "try the CVS source" will be useful.<br><br>I suspect we now REALLY need someone who knows VTK, Mac OS X, AND Java.<br><br>--<br>Kenneth Sloan<br><a href="mailto:KennethRSloan@gmail.com">
KennethRSloan@gmail.com</a><br>Computer and Information Sciences +1-205-934-2213<br>University of Alabama at Birmingham FAX +1-205-934-5473<br>Birmingham, AL 35294-1170 <a href="http://www.cis.uab.edu/sloan/">
http://www.cis.uab.edu/sloan/</a><br><br><br>_______________________________________________<br>This is the private VTK discussion list.<br>Please keep messages on-topic. Check the FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ">
http://www.vtk.org/Wiki/VTK_FAQ</a><br>Follow this link to subscribe/unsubscribe:<br><a href="http://www.vtk.org/mailman/listinfo/vtkusers">http://www.vtk.org/mailman/listinfo/vtkusers</a><br></blockquote></div><br>