How to compile VTK examples on Windows

I am using Windows 10 and Visual Studio 2015 Win64. The command I am using is cmder with powershell settings.

Make sure you understand how to install VTK from binary, here is the youtube tutorial I followed:

After installing VTK, go to the Examples\Tutorials folder, in my case, my path is:


Then, use CMAKE to compile, you have to provide CMAKE with the directory of your self built VTK binaries and provide it with the generator you have, which in my case is Visua Studio 14 2015 Win64. If you don’t know what your generator is, look at the error after you run the CMAKE command and do a google search.

This is my full command, the dot at the end specifies the current directory to compile:

cmake -D VTK_DIR=E:/vtk/bin -G “Visual Studio 14 2015 Win64” .

Hope this works for you!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.