<div dir="ltr">Here are my notes on building VTK <a href="http://5.0.4.">5.0.4.</a> 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> <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. Download vtk-5.0.4.zip from <a href="http://www.vtk.org">www.vtk.org</a> and unzip it. This contains the files required to build VTK,<br> not the files required to use VTK in your own project.<br>
2. Download CMake from <a href="http://www.cmake.org">www.cmake.org</a>. Choose the Windows installer and install it. Also create another<br> directory to place the intermediate files during the build. I recommend YourVTKSourceInstallDir\Build.<br>
3. Run CMakeSetup (in /bin) and set the source directory and the where to build the binaries directory.<br> This where to build the binaries directory is the directory you just created for the intermediate files.<br>
4. Hit configure. This will ask what compiler to configure for, then scan your system before populating the<br> list of project options.<br>5. Set the project options. The BUILD_SHARED_LIBS option is for building the project for dynamic linking<br>
-> If you want to use static linking, set this to OFF. The CMAKE_INSTALL_PREFIX is the directory where<br> the bin, lib, and include directories (for use with your project) will be created. Others are self<br>
explanitory.<br>6. After changing the project options, you need to hit configure again before you can click OK.<br>7. In the directory you created in which you wanted your binaries stored, is a project file called VTK.sln.<br>
Open this project.<br>8. Now you can build the project. I recommend a batch build where you select only the BUILD_ALL project for<br> the configurations you want. This project configures and builds the others.<br>
NOTE: Building with the BUILD_EXAMPLES option (from CMake) gave me a whole bunch of crashes during<br> compile (compiling the examples - everything else still builds fine). I don't know why.<br>9. Do another batch build, this time for the INSTALL projects. Build the same configurations for which you<br>
built the BUILD_ALL projects. This simply copies all of the binaries, libraries, and headers into the<br> 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"><<a href="mailto:raghuprasad.m.s@gmail.com">raghuprasad.m.s@gmail.com</a>></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> </div>
<div> </div>
<div> 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> </div>
<div> </div>
<div>Regards</div>
<div> </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>