Ming - I&#39;ll assume you&#39;re on a Windows machine and have downloaded and installed Visual Studio 2008 Express.<br><br><ol><li>Download VTK latest source.</li><li>Download CMake latest version.</li><li>Install CMake.</li>
<li>Create new directory VTKDir somewhere (can be called anything).</li><li>Create new directory VTKBuild somewhere (can be called anything).<br></li><li>Extract VTK source into VTKDir - directory structure should then look like VTKDir/Common, VTKDir/CMake etc.</li>
<li>Run CMake-GUI.</li><li>Set &quot;Where is the source code:&quot; field to VTKDir path (i.e. path/to/VTKDir)<br></li><li>Set &quot;Where to build the binaries:&quot; field to VTKBuild path (i.e. path/to/VTKBuild)</li><li>
Click &#39;Configure&#39; and select Visual Studio 2008 (or VS 2008 64bit if you want to build 64 bit).<br></li><li>New fields will appear above. Set VTK_DATA_PATH to VTKDir path.</li><li>If you want to build .dll files as well as .lib files then tick box for BUILD_SHARED_LIBS</li>
<li>If you want to use with KWWidgets then tick box for WRAP_TCL</li><li>Click &#39;Configure&#39; again. Wait until done.<br></li><li>Click &#39;Generate&#39;. Wait until done.</li><li>Open Windows Explorer (file browser), navigate to VTKBuild/, open VTK.sln (double click, will open in Visual Studio 2008).</li>
<li>Choose Debug or Release in dropdown in middle of toolbar near top of Visual Studio 2008.<br></li><li>Right click on solution - this is topmost entry in project navigator on left, and choose &#39;Build Solution&#39;</li>
<li>It&#39;ll take a while to build. Once finished, you&#39;ll see a final output at the bottom of the console in VS2008 which should say e.g. &quot;27 Succeeded, 0 Errors&quot;</li><li>Once built, libs and dlls are in VTKBuild/bin/Debug or VTKBuild/bin/Release depending on whether you built as Debug or Release.<br>
</li></ol>After that you&#39;ll need to set up includes in your own code project&#39;s settings to import all necessary libs from VTKBuild/binDebug (or Release). You&#39;ll also need to copy dlls from that same folder (assuming you&#39;ve built dlls) into your project&#39;s executable directory.<br>
<br>HTH<br><br>Dave<br><br><br><div class="gmail_quote">On 7 September 2011 20:53, Ming Huang <span dir="ltr">&lt;<a href="mailto:minghuangvtk@yahoo.com">minghuangvtk@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div>The tutorial to install vtk uses cmake 2.4.6 but it doesn&#39;t seem to be available online anymore.  The earliest version available is 2.6.4, and I think this make it harder to install vtk , because it doesn&#39;t seem to work for me<br>
</div></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<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>