-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Better support for QT5 / VTK 6.x #1217
Conversation
Hi Tobias, great contribution! I'd vote for giving the user control over the version and set the default version to 5. |
Hi, I'll update the pull request tomorrow accordingly, and take your advice and provide the user with the ability to choose the QT version. Best, Tobias |
Hi, I reverted it here, as I still added the option to switch between QT4 and QT5, with QT5 being the default option. Furthermore, I fixed some issues in apps/cloud_composer regarding QT5. Best, |
Just in case you missed this discussion. |
Indeed I missed this discussion. Thanks for pointing that out! |
Hi, Thanks, |
Hi, VTK6 and QT5 are the future, so I'm really looking forward to integrate your pull request. But as you write, I think we need someone to fix the TODOs in there first ;). |
Hi, Best, Tobias |
@Tobias-Fischer I was waiting for the others (@VictorLamoine) to comment. Otherwise feel free to include the revert commit in here as well, as I would say it's related. |
I think it's more logical to do everything here! |
- provide option which QT version to use - compile more apps which were not available using VTK 6.x
Okay cool, all done 👍. Looking forward to see this merged :). Best, Tobias |
From what I understand what was I would like to make sure that we don't break VTK 5.x support as Ubuntu 14.04 still ships with VTK 5.8 by default! Ubuntu 14.04 ships with Qt 5.2.1 but it would be more than nice to keep Qt 4.x compatibility. Without |
Better support for QT5 / VTK 6.x
Hi, Best, Tobias |
No, everything is not fixed: 47%] Building CXX object apps/CMakeFiles/pcl_openni_passthrough.dir/include/pcl/apps/moc_openni_passthrough.cpp.o
In file included from /home/dell/libraries/pcl/build_VTK_5.8/apps/ui_openni_passthrough.h:21:0,
from /home/dell/libraries/pcl/src/apps/include/pcl/apps/openni_passthrough_qt.h:45,
from /home/dell/libraries/pcl/build_VTK_5.8/apps/include/pcl/apps/../../../../../src/apps/include/pcl/apps/openni_passthrough.h:42,
from /home/dell/libraries/pcl/build_VTK_5.8/apps/include/pcl/apps/moc_openni_passthrough.cpp:9:
/usr/include/vtk-5.8/QVTKWidget.h:40:25: fatal error: QtGui/QWidget: No such file or directory
#include <QtGui/QWidget>
^
compilation terminated.
make[2]: *** [apps/CMakeFiles/pcl_openni_passthrough.dir/include/pcl/apps/moc_openni_passthrough.cpp.o] Error 1
make[1]: *** [apps/CMakeFiles/pcl_openni_passthrough.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
They were already broken before... in another way 😄 |
What versions of QT/VTK are you using? Are you sure you compiled VTK with the same version of QT you are trying to compile pcl? |
Sorry for the delay Tobias, I tested again and everything works seamlessly. I was probably mixing versions. |
Hi Victor, I'm glad to hear all works nicely for you as well. |
hi, /usr/include/vtk-6.0/QVTKWidget.h:41:25: fatal error: QtGui/QWidget: No such file or directory this has been bugging me for months now - out of ideas what to modify and where any help appreciated |
Hi all,
This PR adds some features related to QT5.
Firstly, by default QT5 is used. Previously,
find_package(qt4)
ahead of finding QT5 gave linking issues as the wrong paths to qmake etc. were found. Please note that it would be nicer if one could choose the version of QT one wants to use. This could look like this:Let me know if you prefer that alternative, and I'll update the PR.
Secondly, some apps relied on QVTK in QT4. As this is now (somehow) integrated in QT5, those apps were not compiled. I changed this so these apps are properly compiled.
As soon as you are happy and merged this PR, I will have a look that also
apps/cloud_composer
,apps/modeler
andapps/optronic_viewer
are compiled with QT5 (same changes needed as inapps/CMakeLists.txt
).Best,
Tobias