VTK support disabled due to incompatible OpenCV/VTK/Qt combination

asked 2015-05-12 15:06:36 -0500

Asgaro gravatar image

updated 2015-05-12 18:23:29 -0500

Hi, I'm trying to build OpenCV v3.0.0-rc1 on Ubuntu 14.10. However, I receive the following regarding VTK when I do: cmake -DWITH_QT=ON -DWITH_OPENGL=ON -DFORCE_VTK=ON -DWITH_TBB=ON -DWITH_GDAL=ON -DWITH_XINE=ON -DBUILD_EXAMPLES=ON ..

FIRST MENTION: -- The imported target "vtk" references the file "/usr/bin/vtk" but this file does not exist. Possible reasons include: * The file was deleted, renamed, or moved to another location. * An install or uninstall procedure did not complete successfully. * The installation package was faulty and contained "/usr/lib/cmake/vtk-6.1/VTKTargets.cmake" but not all the files it references.

-- VTK support is disabled. Incompatible combination: OpenCV + Qt5 and VTK ver.6.1.0 + Qt4

SECOND MENTION: -- GUI: -- QT 5.x: YES (ver 5.3.0) -- QT OpenGL support: YES (Qt5::OpenGL 5.3.0) -- OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libGLU.so /usr/lib/x86_64-linux-gnu/libGL.so /usr/lib/x86_64-linux-gnu/libSM.so /usr/lib/x86_64-linux-gnu/libICE.so /usr/lib/x86_64-linux-gnu/libX11.so /usr/lib/x86_64-linux-gnu/libXext.so) -- VTK support: NO

THIRD MENTION: -- Configuring done -- Generating done CMake Warning: Manually-specified variables were not used by the project:

FORCE_VTK

So cmake exits fine but I assume these errors shouldn't be there?

KR, Asgaro


edit: Here is the source code regarding the detection of VTK and QT versions: https://github.com/Itseez/opencv/blob...

edit retag flag offensive close merge delete

Comments

1

here with archlinux I am facing the same issue. At the moment vtk-6.1.x and qt5 are incompatible. So either you will have to stick to the Opencv+qt5 without vtk-6.1 (with vtk-6.2 I think there is not any problem so you will have to wait until it passes to the repositories or to compile it by yourself) or Opencv+qt4+vtk-6.1 combinations.

theodore gravatar imagetheodore ( 2015-05-12 16:46:13 -0500 )edit