<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><DIV>VTK Users:</DIV><DIV><BR class="khtml-block-placeholder"></DIV>The following instruction set allows MAC OS X tiger users to compile VTK 5.0 with Java wrappings.  This instruction set would not have been possible without the help of Mike Jackson.  Thanks Mike!!!<DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN style="">Folks let me know if there are any mistakes with the instructions or further clarification is necessary.</SPAN></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Thanks:</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>-Vivek</DIV><DIV><BR class="khtml-block-placeholder"></DIV><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>STEP 1:</B></SPAN></FONT><SPAN style="mso-spacerun: yes"><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>  </B></SPAN></FONT></SPAN><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>Downloading Software</B></SPAN></FONT><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style="">1. Java:<SPAN style="mso-spacerun: yes">  </SPAN>Make sure your JAVA is update go to your terminal app and type:<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style="">java -version<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style="">You should have at least build 1.5 patch 2<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style="">2.<SPAN style="mso-spacerun: yes">  </SPAN>Download the CMAKE Darwin Universal binary (Tiger only installer ) from:<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""><A href="http://www.cmake.org/HTML/Download.html">http://www.cmake.org/HTML/Download.html</A><O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style="">Install CMAKE by double clicking on the icon<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style="">3. Download the VTK source from:<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""><SPAN style="mso-spacerun: yes"> </SPAN><A href="http://vtk.org/get-software.php">http://vtk.org/get-software.php</A> <O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style="">(Note:<SPAN style="mso-spacerun: yes">  </SPAN>The Latest Release (5.0.0) does not allow the java wrapping to work you need to get the source code via the CVS source-code repository)<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style="">Open the terminal app.<SPAN style="mso-spacerun: yes">  </SPAN>cd to /Users/user-name<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style="">type the following:<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>cvs -d :pserver:<A href="mailto:anonymous@public.kitware.com">anonymous@public.kitware.com</A>:/cvsroot/VTK login </B></SPAN></FONT></SPAN><SPAN style=""><FONT class="Apple-style-span" face="Times-Roman" size="6"><SPAN class="Apple-style-span" style="font-size: 21.3333px;">
(respond with password </SPAN></FONT></SPAN><SPAN style=""><FONT class="Apple-style-span" face="Courier-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>vtk</B></SPAN></FONT></SPAN><SPAN style=""><FONT class="Apple-style-span" face="Times-Roman" size="6"><SPAN class="Apple-style-span" style="font-size: 21.3333px;">)</SPAN></FONT><FONT class="Apple-style-span" face="Times-Roman" size="6"><SPAN class="Apple-style-span" style="font-size: 21.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;tab-stops:.5in 1.0in 1.5in 2.0in 2.5in 3.0in 3.5in 4.0in 4.5in 5.0in 5.5in 6.0in; mso-layout-grid-align:none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>cvs -d :pserver:<A href="mailto:anonymous@public.kitware.com">anonymous@public.kitware.com</A>:/cvsroot/VTK checkout VTK</B></SPAN></FONT><FONT class="Apple-style-span" face="Courier-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">You will see the source code and corresponding folders downloading in to a new folder called VTK<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">cd to that folder in my case the folder path is /Users/vivekd/VTK<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>STEP 2: Compiling VTK</B></SPAN></FONT><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">1) Type ccmake ../vtk<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">2) Type c <O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">3) Edit the list of options with the following:<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">BUILD_EXAMPLES<SPAN style="mso-spacerun: yes">                   </SPAN><SPAN style="mso-tab-count:2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>ON<SPAN style="mso-spacerun: yes">                                                                                                                           </SPAN>BUILD_SHARED_LIBS<SPAN style="mso-spacerun: yes">         </SPAN><SPAN style="mso-spacerun: yes">       </SPAN><SPAN style="mso-tab-count:2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>ON<SPAN style="mso-spacerun: yes">                                                                                                                           </SPAN>CMAKE_BACKWARDS_COMPATIBILITY<SPAN style="mso-spacerun: yes">    </SPAN><SPAN style="mso-tab-count:1">            </SPAN>2.4<SPAN style="mso-spacerun: yes">                                                                                    </SPAN><SPAN style="mso-spacerun: yes">                                      </SPAN>CMAKE_BUILD_TYPE<SPAN style="mso-spacerun: yes">                                                                                                                                              </SPAN>CMAKE_INSTALL_PREFIX<SPAN style="mso-spacerun: yes">             </SPAN><SPAN style="mso-tab-count:1">     </SPAN><SPAN style="mso-tab-count:1">            </SPAN>/usr/local<SPAN style="mso-spacerun: yes">               </SPAN><SPAN style="mso-spacerun: yes">                                                                                                  </SPAN>CMAKE_OSX_ARCHITECTURES<SPAN style="mso-spacerun: yes">          </SPAN><SPAN style="mso-tab-count:1">            </SPAN>ppc<SPAN style="mso-spacerun: yes">                                                                                                                         </SPAN><SPAN style="mso-spacerun: yes"> </SPAN>CMAKE_OSX_SYSROOT<SPAN style="mso-spacerun: yes">                </SPAN>/Developer/SDKs/MacOSX10.4u.sdk<SPAN style="mso-spacerun: yes">                                                                                              </SPAN>VTK_DATA_ROOT<SPAN style="mso-spacerun: yes">                    </SPAN><SPAN style="mso-tab-count:2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>VTK_DATA_ROOT-NOTFOUND<SPAN style="mso-spacerun: yes">                                       </SPAN><SPAN style="mso-spacerun: yes">                                                                </SPAN>VTK_USE_CARBON<SPAN style="mso-spacerun: yes">                   </SPAN><SPAN style="mso-tab-count:2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>OFF<SPAN style="mso-spacerun: yes">                                                                                                                          </SPAN>VTK_USE_COCOA<SPAN style="mso-spacerun: yes">                  </SPAN><SPAN style="mso-spacerun: yes">  </SPAN><SPAN style="mso-tab-count:2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>OFF<SPAN style="mso-spacerun: yes">                                                                                                                          </SPAN>VTK_USE_FFMPEG_ENCODER<SPAN style="mso-spacerun: yes">           </SPAN><SPAN style="mso-tab-count:1">            </SPAN><SPAN style="mso-tab-count:1">            </SPAN>OFF<SPAN style="mso-spacerun: yes">                                                                                        </SPAN><SPAN style="mso-spacerun: yes">                                  </SPAN>VTK_USE_PARALLEL<SPAN style="mso-spacerun: yes">                 </SPAN><SPAN style="mso-tab-count:2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>OFF<SPAN style="mso-spacerun: yes">                                                                                                                          </SPAN>VTK_USE_RENDERING<SPAN style="mso-spacerun: yes">                </SPAN><SPAN style="mso-tab-count:1">     </SPAN><SPAN style="mso-tab-count:1">            </SPAN>ON<SPAN style="mso-spacerun: yes">                        </SPAN><SPAN style="mso-spacerun: yes">                                                                                                   </SPAN>VTK_USE_RPATH<SPAN style="mso-spacerun: yes">                    </SPAN><SPAN style="mso-tab-count:2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>ON<SPAN style="mso-spacerun: yes">                                                                                                                       </SPAN><SPAN style="mso-spacerun: yes">    </SPAN>VTK_USE_X<SPAN style="mso-spacerun: yes">                        </SPAN><SPAN style="mso-tab-count:2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>ON<SPAN style="mso-spacerun: yes">                                                                                                                           </SPAN>VTK_WRAP_JAVA<SPAN style="mso-spacerun: yes">                    </SPAN><SPAN style="mso-tab-count:2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>ON<SPAN style="mso-spacerun: yes">                                                     </SPAN><SPAN style="mso-spacerun: yes">                                                                      </SPAN>VTK_WRAP_PYTHON<SPAN style="mso-spacerun: yes">                  </SPAN><SPAN style="mso-tab-count:1">            </SPAN><SPAN style="mso-tab-count:1">            </SPAN>OFF<SPAN style="mso-spacerun: yes">                                                                                                                          </SPAN>VTK_WRAP_TCL<SPAN style="mso-spacerun: yes">              </SPAN><SPAN style="mso-spacerun: yes">       </SPAN><SPAN style="mso-tab-count: 2">                        </SPAN><SPAN style="mso-tab-count:1">            </SPAN>OFF<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">4) Type c<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">5) Type t for advanced options:<SPAN style="mso-spacerun: yes">  </SPAN>Change the following<O:P></O:P></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">JAVACOMMAND</SPAN></FONT><SPAN style="mso-spacerun: yes"><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">                      </SPAN></FONT></SPAN><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">JAVA_ARCHIVE</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/jar</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">JAVA_AWT_INCLUDE_PATH</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Headers</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">JAVA_AWT_LIBRARY</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">-framework JavaVM -framework JavaEmbedding</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">JAVA_COMPILE</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">JAVA_INCLUDE_PATH</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Headers</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">JAVA_INCLUDE_PATH2</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Headers</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">JAVA_RUNTIME</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/java</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">OPENGL_INCLUDE_DIR:PATH=/usr/X11R6/include</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">OPENGL_gl_LIBRARY:STRING=-framework OpenGL</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="mso-pagination:none;mso-layout-grid-align:none; text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"> </SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">OPENGL_glu_LIBRARY:STRING=-framework AGL</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;">6) Type c then Type g</SPAN></FONT><FONT class="Apple-style-span" face="Courier" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>STEP 3:</B></SPAN></FONT><SPAN style="mso-spacerun: yes"><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>  </B></SPAN></FONT></SPAN><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>Editing build.make</B></SPAN></FONT><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><OL style="margin-top:0in" start="1" type="1"><LI class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;     mso-list:l0 level1 lfo1;tab-stops:list .5in;mso-layout-grid-align:none;     text-autospace:none"><SPAN style="">Go to<SPAN style="mso-spacerun: yes">      </SPAN>VTK/Wrapping/Java/CMakeFiles/VTKBuildAll.dir/<O:P></O:P></SPAN></LI><LI class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;     mso-list:l0 level1 lfo1;tab-stops:list .5in;mso-layout-grid-align:none;     text-autospace:none"><SPAN style="">Using Text edit     open the build.make file<O:P></O:P></SPAN></LI><LI class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;     mso-list:l0 level1 lfo1;tab-stops:list .5in;mso-layout-grid-align:none;     text-autospace:none"><SPAN style="">Change the     following: <O:P></O:P></SPAN></LI></OL><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">cd /Users/vivekd/vtk/Wrapping/Java &amp;&amp; /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac -classpath /Users/vivekd/vtk/java/vtk/.. -d /Users/vivekd/vtk/java/vtk/.. /Users/vivekd/vtk/java/vtk/vtkBuildAllDriver.java<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">to <O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">cd /Users/vivekd/vtk/Wrapping/Java &amp;&amp; /System/Library/Frameworks/JavaVM.framework/Versions/1.5/Commands/javac </SPAN><SPAN style=""><FONT class="Apple-style-span" size="6"><SPAN class="Apple-style-span" style="font-size: 21.3333px;"><B>-J-Xmx256m</B></SPAN></FONT></SPAN><SPAN style=""> -classpath /Users/vivekd/vtk/java/vtk/.. -d /Users/vivekd/vtk/java/vtk/.. /Users/vivekd/vtk/java/vtk/vtkBuildAllDriver.java<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>STEP 4:</B></SPAN></FONT><SPAN style="mso-spacerun: yes"><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>  </B></SPAN></FONT></SPAN><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>MAKE</B></SPAN></FONT><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">At the command prompt in your terminal application go to the VTK directory in my case it is at /Users/vivekd/VTK<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">Type <B>make</B></SPAN><SPAN style=""> and wait, on a MAC G5 it takes about 25 minutes to build the application.<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>STEP 5:</B></SPAN></FONT><SPAN style="mso-spacerun: yes"><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>  </B></SPAN></FONT></SPAN><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>Editing or creating .tcshrc</B></SPAN></FONT><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">My shell is the T shell.<SPAN style="mso-spacerun: yes">  </SPAN><O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">You need to tell java where your .dylib and vtk.jar file is located<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">1) If you don’t have a .tcshrc file type emacs .tcshrc file<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">2) Add the following lines<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">setenv DYLD_LIBRARY_PATH /Users/vivekd/VTK/bin<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">setenv CLASSPATH .:/Users/vivekd/VTK/bin/vtk.jar<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">don’t forget the .: before the path to the vtk.jar file<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">3) exit emacs by typing ctrl x then ctrl c it will ask you if you want to save type y and hit return<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">4) at the command prompt type source .tcshrc<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style="">5) check to see if the paths were added by typing env<O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><SPAN style="mso-spacerun: yes"> </SPAN></SPAN><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>STEP 6:</B></SPAN></FONT><SPAN style="mso-spacerun: yes"><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>  </B></SPAN></FONT></SPAN><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><B>Testing with an example</B></SPAN></FONT><FONT class="Apple-style-span" face="Helvetica-Bold" size="5"><SPAN class="Apple-style-span" style="font-size: 17.3333px;"><O:P></O:P></SPAN></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold">Make sure you are in X11</FONT><FONT class="Apple-style-span" face="Helvetica-Bold"><O:P></O:P></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold">Go to the Java examples which are located at /Users/vivekd/VTK/Examples/Tutorials/Step*/Java</FONT><FONT class="Apple-style-span" face="Helvetica-Bold"><O:P></O:P></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold">Type javac Step*.java</FONT><FONT class="Apple-style-span" face="Helvetica-Bold"><O:P></O:P></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold">Type java Step*</FONT><FONT class="Apple-style-span" face="Helvetica-Bold"><O:P></O:P></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold">* = 1,2,3,4,5</FONT><FONT class="Apple-style-span" face="Helvetica-Bold"><O:P></O:P></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""><FONT class="Apple-style-span" face="Helvetica-Bold"> </FONT><FONT class="Apple-style-span" face="Helvetica-Bold"><O:P></O:P></FONT></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"><SPAN style=""> <O:P></O:P></SPAN></P><P class="MsoNormal" style="margin-bottom:16.0pt;mso-pagination:none;mso-layout-grid-align: none;text-autospace:none"> <O:P></O:P></P></BODY></HTML>