Re: VTK 8.1 + Qt 5.7 + CMake
Paulo Carvalho <[email protected]> Mon, 1 Jul 2019 07:55:41 -0300
| Newsgroups | gmane.comp.lib.vtk.user |
|---|---|
| Message-ID | <CA+xrYwhcSVEZa=PyxbbmwTc=UZKOOGqJFf6qPnkBWRY+Rmmwkg@mail.gmail.com> |
--===============1002828974==
Content-Type: multipart/alternative; boundary="000000000000d45e85058c9c78cf"
--000000000000d45e85058c9c78cf
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Hello, Cristina !
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.
Go back to CMake and set VTK_QT_VERSION to 5.
Please, address your VTK questions in VTK Discourse:
https://discourse.vtk.org/. This mail list will be disabled soon. You're
likely to get answers there and you can count on new features.
all the best,
Paulo
Em seg, 1 de jul de 2019 =C3=A0s 04:42, cristinaluna <[email protected]>
escreveu:
> 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
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Search the list archives at: http://markmail.org/search/?q=3Dvtkusers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtkusers
>
--000000000000d45e85058c9c78cf
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr"><div dir=3D"ltr"><div dir=3D"ltr"><div><div><div><div>Hell=
o, Cristina !<br><br></div>=C2=A0=C2=A0=C2=A0 Enabling the Qt group is not =
enough.=C2=A0 You have to set which Qt version you're using.=C2=A0 From=
your messages, it seems that you have Qt 5 in your system, but CMake is tr=
ying to use Qt 4.<br><br></div>=C2=A0=C2=A0=C2=A0=C2=A0 Go back to CMake an=
d set VTK_QT_VERSION to 5.<br><br></div><div>=C2=A0=C2=A0=C2=A0=C2=A0 Pleas=
e, address your VTK questions in VTK Discourse: <a href=3D"https://discours=
e.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 fea=
tures.<br></div><div><br></div>all the best,<br><br></div>Paulo<br></div></=
div></div><br><div class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_at=
tr">Em seg, 1 de jul de 2019 =C3=A0s 04:42, cristinaluna <<a href=3D"mai=
lto:[email protected]">[email protected]</a>> escreveu:<br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t: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>
=C2=A0 =C2=A0Could NOT find Qt4 (missing: QT_WIDGETS_INCLUDE_DIR QT_WIDGETS=
_LIBRARY)<br>
=C2=A0 =C2=A0(found version "4.8.7")<br>
=C2=A0Call Stack (most recent call first):<br>
=C2=A0 =C2=A0/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cma=
ke:388<br>
(_FPHSA_FAILURE_MESSAGE)<br>
=C2=A0 =C2=A0/usr/share/cmake-3.5/Modules/FindQt4.cmake:1333<br>
(FIND_PACKAGE_HANDLE_STANDARD_ARGS)<br>
=C2=A0 =C2=A0build/lib/cmake/vtk-8.1/Modules/vtkGUISupportQt.cmake:16 (find=
_package)<br>
=C2=A0 =C2=A0CMake/vtkModuleAPI.cmake:45 (include)<br>
=C2=A0 =C2=A0CMake/vtkModuleAPI.cmake:15 (vtk_module_load)<br>
=C2=A0 =C2=A0CMake/vtkModuleAPI.cmake:155 (_vtk_module_config_recurse)<br>
=C2=A0 =C2=A0CMake/vtkModuleMacros.cmake:432 (vtk_module_config)<br>
=C2=A0 =C2=A0CMake/vtkModuleMacros.cmake:639 (vtk_module_test)<br>
=C2=A0 =C2=A0CMake/vtkTestingMacros.cmake:357 (vtk_module_test_executable)<=
br>
=C2=A0 =C2=A0GUISupport/Qt/Testing/Cxx/CMakeLists.txt:44 (vtk_test_cxx_exec=
utable)<br>
<br>
<br>
I don't know what to do now, I have the PATHs on my .bashrc and install=
ed<br>
Qt4 too. Do you know how to fix this problem?<br>
<br>
Thank you!<br>
<br>
<br>
<br>
--<br>
Sent from: <a href=3D"http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.h=
tml" rel=3D"noreferrer" target=3D"_blank">http://vtk.1045678.n5.nabble.com/=
VTK-Users-f1224199.html</a><br>
_______________________________________________<br>
Powered by <a href=3D"http://www.kitware.com" rel=3D"noreferrer" target=3D"=
_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href=3D"http://www.kitware.c=
om/opensource/opensource.html" rel=3D"noreferrer" target=3D"_blank">http://=
www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href=3D"http://w=
ww.vtk.org/Wiki/VTK_FAQ" rel=3D"noreferrer" target=3D"_blank">http://www.vt=
k.org/Wiki/VTK_FAQ</a><br>
<br>
Search the list archives at: <a href=3D"http://markmail.org/search/?q=3Dvtk=
users" rel=3D"noreferrer" target=3D"_blank">http://markmail.org/search/?q=
=3Dvtkusers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href=3D"https://vtk.org/mailman/listinfo/vtkusers" rel=3D"noreferrer" ta=
rget=3D"_blank">https://vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div>
--000000000000d45e85058c9c78cf--
--===============1002828974==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Search the list archives at: http://markmail.org/search/?q=vtkusers
Follow this link to subscribe/unsubscribe:
https://vtk.org/mailman/listinfo/vtkusers
--===============1002828974==--