Ask Your Question

Revision history [back]

Trouble Installing OpenCV on a particular machine

I haven't had trouble installing OpenCV before, but this time I am having some trouble. Any help will be much appreciated! The error is such:

/home/user/opencv/build/modules/viz/precomp.hpp:56:31: fatal error: vtkAppendPolyData.h: No such file or directory compilation terminated. modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/build.make:62: recipe for target 'modules/viz/precomp.hpp.gch/opencv_viz_Release.gch' failed make[2]: * [modules/viz/precomp.hpp.gch/opencv_viz_Release.gch] Error 1 CMakeFiles/Makefile2:3388: recipe for target 'modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all' failed make[1]: [modules/viz/CMakeFiles/pch_Generate_opencv_viz.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: ** [all] Error 2

I have installed the libvtk library (sudo apt-get install libvtk6.2 libvtk-java and I also tried installing vtk