# VTK Support missing?

**URL:** <https://forum.opencv.org/t/vtk-support-missing/891>\
**Category:** Uncategorized\
**Tags:** dnn\
**Created:** [January 15, 2021, 7:45pm UTC](https://forum.opencv.org/t/vtk-support-missing/891 "2021-01-15T19:45:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![BobDavies2000](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/bobdavies2000/32/541_2.png) [@BobDavies2000](https://forum.opencv.org/u/BobDavies2000)\
**Post date:** [January 15, 2021, 7:45pm UTC](https://forum.opencv.org/t/vtk-support-missing/891/1 "2021-01-15T19:45:00Z")

</div>

Has VTK support been dropped? Whatever I specify for VTK\_DIR results in “VTK\_DIR-NOTFOUND”. The message from CMAKE is:

VTK is not found. Please set -DVTK\_DIR in CMake to VTK build directory, or to VTK install subdirectory with VTKConfig.cmake file

I am pointing to the VTK build directory.

Bob Davies

---

<div class="post-metadata">

**Author:** ![sturkmen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/sturkmen/32/13_2.png) [@sturkmen](https://forum.opencv.org/u/sturkmen)\
**Post date:** [January 15, 2021, 7:54pm UTC](https://forum.opencv.org/t/vtk-support-missing/891/2 "2021-01-15T19:54:03Z")

</div>

maybe you will find an answer [here](https://answers.opencv.org/question/183404/what-are-all-the-requirement-for-viz-module-installation/)

---

<div class="post-metadata">

**Author:** ![BobDavies2000](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/bobdavies2000/32/541_2.png) [@BobDavies2000](https://forum.opencv.org/u/BobDavies2000)\
**Post date:** [January 15, 2021, 8:38pm UTC](https://forum.opencv.org/t/vtk-support-missing/891/3 "2021-01-15T20:38:00Z")

</div>

sturkmen - that post was so old I didn’t think it would be relevant but it proved to be useful in prompting me to look at the second half of the error message. The problem is that the VTK\_DIR can ONLY point to the install directory. In the past, you could just point to the VTK Build directory as the message says. Here are the step-by-step instructions (just for my own notes, really):

1. Click on the Install project in VTK.sln and “Build Install” using the menus

2. cmake OpenCV again and set VTK\_DIR to the location for the Build Install - c:\Program Files\VTK

3. Configure/Generate/Open Project and rebuild OpenCV.

4. check that it built by looking at the OpenCV/Build/Bin/Debug/opencv\_viz\*.dll

Thanks for your help…

---

<div class="post-metadata">

**Author:** ![laurent.berger](https://avatars.discourse-cdn.com/v4/letter/l/ec9cab/32.png) [@laurent.berger](https://forum.opencv.org/u/laurent.berger)\
**Post date:** [January 15, 2021, 8:54pm UTC](https://forum.opencv.org/t/vtk-support-missing/891/4 "2021-01-15T20:54:33Z")

</div>

May be this post is old but I 'm still using it. If your cmake configuration is good you don’t need to change anything in visual studio lib or path  
my cmake configuration [gist:dd65f04b846a742c1457dbe5b1aa169d · GitHub](https://gist.github.com/LaurentBerger/dd65f04b846a742c1457dbe5b1aa169d#file-gistfile1-txt)
