<div dir="ltr"><div dir="ltr"><div dir="ltr"><div><div><div><div>Hello, Cristina !<br><br></div>    Enabling the Qt group is not enough.  You have to set which Qt version you're using.  From your messages, it seems that you have Qt 5 in your system, but CMake is trying to use Qt 4.<br><br></div>     Go back to CMake and set VTK_QT_VERSION to 5.<br><br></div><div>     Please, address your VTK questions in VTK Discourse: <a href="https://discourse.vtk.org/">https://discourse.vtk.org/</a>. This mail list will be disabled soon.  You're likely to get answers there and you can count on new features.<br></div><div><br></div>all the best,<br><br></div>Paulo<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Em seg, 1 de jul de 2019 às 04:42, cristinaluna <<a href="mailto:cristina@cluna.info">cristina@cluna.info</a>> escreveu:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all!<br>
<br>
I'm trying to run a Qt application using VTK, but I found this errors:<br>
<br>
/opt/Qt5.7.0/5.7/gcc_64/include/QtWidgets/QVTKWidget.h:32: error:<br>
vtkGUISupportQtModule.h: No such file or directory<br>
<br>
I've found in stackoverflow/vtkforums that I have to enable the option<br>
VTK_Group_Qt in CMAKE in order to install the QVTKWidget.<br>
<br>
When I try cmake with this option, I get:<br>
<br>
Make Error at<br>
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148<br>
(message):<br>
   Could NOT find Qt4 (missing: QT_WIDGETS_INCLUDE_DIR QT_WIDGETS_LIBRARY)<br>
   (found version "4.8.7")<br>
 Call Stack (most recent call first):<br>
   /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388<br>
(_FPHSA_FAILURE_MESSAGE)<br>
   /usr/share/cmake-3.5/Modules/FindQt4.cmake:1333<br>
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)<br>
   build/lib/cmake/vtk-8.1/Modules/vtkGUISupportQt.cmake:16 (find_package)<br>
   CMake/vtkModuleAPI.cmake:45 (include)<br>
   CMake/vtkModuleAPI.cmake:15 (vtk_module_load)<br>
   CMake/vtkModuleAPI.cmake:155 (_vtk_module_config_recurse)<br>
   CMake/vtkModuleMacros.cmake:432 (vtk_module_config)<br>
   CMake/vtkModuleMacros.cmake:639 (vtk_module_test)<br>
   CMake/vtkTestingMacros.cmake:357 (vtk_module_test_executable)<br>
   GUISupport/Qt/Testing/Cxx/CMakeLists.txt:44 (vtk_test_cxx_executable)<br>
<br>
<br>
I don't know what to do now, I have the PATHs on my .bashrc and installed<br>
Qt4 too. Do you know how to fix this problem?<br>
<br>
Thank you!<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html" rel="noreferrer" target="_blank">http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" rel="noreferrer" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtkusers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://vtk.org/mailman/listinfo/vtkusers" rel="noreferrer" target="_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>