Ask Your Question

Asgaro's profile - activity

2018-11-08 01:47:16 -0500 received badge  Notable Question (source)
2017-04-07 15:48:05 -0500 received badge  Popular Question (source)
2015-05-12 15:07:59 -0500 received badge  Editor (source)
2015-05-12 15:07:53 -0500 asked a question VTK support disabled due to incompatible OpenCV/VTK/Qt combination

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/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ /usr/lib/x86_64-linux-gnu/ -- VTK support: NO

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


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: