Opencv: OpenCV 2.4 with VTK 7

Created on 27 Feb 2016  ·  3Comments  ·  Source: opencv/opencv

Configuring with -DWITH_VTK=ON fails with VTK7. The message is

  Requested modules not available:

    vtkRenderingOpenGL

Any ideas?

2.4 bug builinstall

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".

All 3 comments

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".

Was this page helpful?
0 / 5 - 0 ratings