[vtkusers] VTK 8.1 + Qt 5.7 + CMake

cristinaluna cristina at cluna.info
Mon Jul 1 03:41:52 EDT 2019


Hi all!

I'm trying to run a Qt application using VTK, but I found this errors:

/opt/Qt5.7.0/5.7/gcc_64/include/QtWidgets/QVTKWidget.h:32: error:
vtkGUISupportQtModule.h: No such file or directory

I've found in stackoverflow/vtkforums that I have to enable the option
VTK_Group_Qt in CMAKE in order to install the QVTKWidget.

When I try cmake with this option, I get:

Make Error at
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148
(message):
   Could NOT find Qt4 (missing: QT_WIDGETS_INCLUDE_DIR QT_WIDGETS_LIBRARY)
   (found version "4.8.7")
 Call Stack (most recent call first):
   /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388
(_FPHSA_FAILURE_MESSAGE)
   /usr/share/cmake-3.5/Modules/FindQt4.cmake:1333
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)
   build/lib/cmake/vtk-8.1/Modules/vtkGUISupportQt.cmake:16 (find_package)
   CMake/vtkModuleAPI.cmake:45 (include)
   CMake/vtkModuleAPI.cmake:15 (vtk_module_load)
   CMake/vtkModuleAPI.cmake:155 (_vtk_module_config_recurse)
   CMake/vtkModuleMacros.cmake:432 (vtk_module_config)
   CMake/vtkModuleMacros.cmake:639 (vtk_module_test)
   CMake/vtkTestingMacros.cmake:357 (vtk_module_test_executable)
   GUISupport/Qt/Testing/Cxx/CMakeLists.txt:44 (vtk_test_cxx_executable)


I don't know what to do now, I have the PATHs on my .bashrc and installed
Qt4 too. Do you know how to fix this problem?

Thank you!



--
Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html


More information about the vtkusers mailing list