Conversation
cmake/OpenCVFindLibsGUI.cmake
Outdated
| if(Qt5OpenGL_FOUND) | ||
| set(QT_QTOPENGL_FOUND ON) | ||
| find_package(QT NAMES Qt6 Qt5 COMPONENTS Core Gui Widgets Test Concurrent REQUIRED NO_MODULE) | ||
| find_package(Qt${QT_VERSION_MAJOR} COMPONENTS Core Gui Widgets Test Concurrent REQUIRED NO_MODULE) |
There was a problem hiding this comment.
Cases with:
WITH_QT=4WITH_QT=5WITH_QT=6- and
WITH_QT=ON
should be handled properly.
There was a problem hiding this comment.
This block is not used to handle QT4,
please see "if(NOT WITH_QT EQUAL 4)" and code at line 42 ...
There was a problem hiding this comment.
Clean 3.4 branch + Fedora 33 with Qt4 + Qt5:
- ✔ WITH_QT=ON =>
YES (ver 5.15.2) - ✔ WITH_QT=4 =>
YES (ver 4.8.7 EDITION = OpenSource) - ✔ WITH_QT=5 =>
YES (ver 5.15.2) - ✖ WITH_QT=6 =>
YES (ver 5.15.2)
Patch original (May) + Fedora 33 with Qt4 + Qt5:
- ✔ WITH_QT=ON =>
YES (ver 5.15.2) - ✔ WITH_QT=4 =>
YES (ver 4.8.7 EDITION = OpenSource) - ✔ WITH_QT=5 =>
YES (ver 5.15.2) - ✖ WITH_QT=6 =>
YES (ver 5.15.2)
Patch updated + Fedora 33 with Qt4 + Qt5:
- ✔ WITH_QT=ON =>
YES (ver 5.15.2) - ✔ WITH_QT=4 =>
YES (ver 4.8.7 EDITION = OpenSource) - ✔ WITH_QT=5 =>
YES (ver 5.15.2) - ✔ WITH_QT=6 => FAILED
Need someone with Qt6 environment to validate behavior
|
Is there any progress? |
|
So, is there any tutorial that explains how to use OpenCV latest version (4.5.4) with OT 6? |
|
@anguman Have been using it for two weeks. Works exactly like Qt5 as far as I can tell. If Qt6 is found, it will be used. |
|
My build with QT6 fails for OpenCV (4.5.4) with the setting WITH_OPENGL=ON: the highgui module is using the deprecated class QGLWidget. Someone brought this up in issue ticket #20499, but it doesn't seem resolved. |
|
Thanks Alex,
I opened a PR (#21194) with a patch for building opencv with qt6 and
opengl. Used preprocessors,
so the changes shouldn't impact any builds with qt5 (or qt6 without opengl)
Patrick
…On Fri, Nov 26, 2021 at 8:02 PM Alexander Alekhin ***@***.***> wrote:
@whalenpt <https://github.com/whalenpt> I closed #20499
<#20499> as original problem is
resolved.
Qt6+OpenCL is a bit different problem.
Feel free to open new issue or prepare PR with fix if you have any.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20183 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGS5CMBSM2LGGRZAZCYVUT3UOBJ6VANCNFSM45ZL52LA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
Best regards,
Patrick Whalen
<https://www.linkedin.com/in/patrick-whalen-phd-06703b203/>
<https://github.com/whalenpt>
|
Recreate the pull request as vpisarev mentioned here --
#19995 (comment)
Pull Request Readiness Checklist
See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request
Patch to opencv_extra has the same branch name.