Configuring with -DWITH_VTK=ON
fails with VTK7. The message is
Requested modules not available:
vtkRenderingOpenGL
Any ideas?
vtkRenderingOpenGL was replaced by vtkRenderingOpenGL2 in VTK 7.
So you can edit cmake/OpenCVDetectionVTK.cmake.
At line 6, change "vtkRenderingOpenGL" to "vtkRenderingOpenGL2".
Can u tell me where cmake/OpenCVDetectionVTK.cmake. is located ? I cant seem to find that file. I am having the same problems
@HaziqRazali, @chengguo1987 meant "OpenCVDetectVTK.cmake", not "OpenCVDetectionVTK.cmake". I was also confused that "this file was missing".
Most helpful comment
vtkRenderingOpenGL was replaced by vtkRenderingOpenGL2 in VTK 7.
So you can edit cmake/OpenCVDetectionVTK.cmake.
At line 6, change "vtkRenderingOpenGL" to "vtkRenderingOpenGL2".