<div dir="ltr">Here are my notes on building VTK <a href="http://5.0.4.">5.0.4.</a>&nbsp; No guarantee that this will work for you, but this is what I did:<br><br>For instructions on building and installing VTK see:<br>&nbsp;&nbsp;&nbsp; <a href="http://www.vtk.org/Wiki/VTK_Building_VTK">http://www.vtk.org/Wiki/VTK_Building_VTK</a><br>
<br>My instructions:<br>1.&nbsp;&nbsp;&nbsp; Download vtk-5.0.4.zip from <a href="http://www.vtk.org">www.vtk.org</a> and unzip it.&nbsp; This contains the files required to build VTK,<br>&nbsp;&nbsp;&nbsp; not the files required to use VTK in your own project.<br>
2.&nbsp;&nbsp;&nbsp; Download CMake from <a href="http://www.cmake.org">www.cmake.org</a>.&nbsp; Choose the Windows installer and install it.&nbsp; Also create another<br>&nbsp;&nbsp;&nbsp; directory to place the intermediate files during the build.&nbsp; I recommend YourVTKSourceInstallDir\Build.<br>
3.&nbsp;&nbsp;&nbsp; Run CMakeSetup (in /bin) and set the source directory and the where to build the binaries directory.<br>&nbsp;&nbsp;&nbsp; This where to build the binaries directory is the directory you just created for the intermediate files.<br>
4.&nbsp;&nbsp;&nbsp; Hit configure.&nbsp; This will ask what compiler to configure for, then scan your system before populating the<br>&nbsp;&nbsp;&nbsp; list of project options.<br>5.&nbsp;&nbsp;&nbsp; Set the project options.&nbsp; The BUILD_SHARED_LIBS option is for building the project for dynamic linking<br>
&nbsp;&nbsp;&nbsp; -&gt; If you want to use static linking, set this to OFF.&nbsp; The CMAKE_INSTALL_PREFIX is the directory where<br>&nbsp;&nbsp;&nbsp; the bin, lib, and include directories (for use with your project) will be created.&nbsp; Others are self<br>
&nbsp;&nbsp;&nbsp; explanitory.<br>6.&nbsp;&nbsp;&nbsp; After changing the project options, you need to hit configure again before you can click OK.<br>7.&nbsp;&nbsp;&nbsp; In the directory you created in which you wanted your binaries stored, is a project file called VTK.sln.<br>
&nbsp;&nbsp;&nbsp; Open this project.<br>8.&nbsp;&nbsp;&nbsp; Now you can build the project.&nbsp; I recommend a batch build where you select only the BUILD_ALL project for<br>&nbsp;&nbsp;&nbsp; the configurations you want.&nbsp; This project configures and builds the others.<br>
&nbsp;&nbsp;&nbsp; NOTE:&nbsp; Building with the BUILD_EXAMPLES option (from CMake) gave me a whole bunch of crashes during<br>&nbsp;&nbsp;&nbsp; compile (compiling the examples - everything else still builds fine).&nbsp; I don&#39;t know why.<br>9.&nbsp;&nbsp;&nbsp; Do another batch build, this time for the INSTALL projects.&nbsp; Build the same configurations for which you<br>
&nbsp;&nbsp;&nbsp; built the BUILD_ALL projects.&nbsp; This simply copies all of the binaries, libraries, and headers into the<br>&nbsp;&nbsp;&nbsp; directory that you specified with CMAKE_INSTALL_PREFIX.<br><br>Hope this helps.<br><br>-Kerry<br><br><div class="gmail_quote">
On Fri, Aug 22, 2008 at 2:06 AM, RAGHU PRASAD <span dir="ltr">&lt;<a href="mailto:raghuprasad.m.s@gmail.com">raghuprasad.m.s@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div dir="ltr"><div>Respected sir,</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I am trying to build vtk 5.0.0 with cmake 2.4.6 on win xp platform with VC++ 6.0 compiler .Can you suggest a foolproof methodology to build and install VTK on a bare windows machine with the above mentioned specifications .Please provide a step by step procedure to build and install VTK.Please suggest other necessary files or components which are needed to bulid and install vtk.</div>


<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Regards</div>
<div>&nbsp;</div><font color="#888888">
<div>Raghu</div></font></div>
<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" target="_blank">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" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
<br></blockquote></div><br></div>