-
Notifications
You must be signed in to change notification settings - Fork 5.8k
make CVV module work with Qt6 #3285
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
Conversation
Is there anything wrong with the PR that running workflows are not approved? |
Hi @bebuch! I have tested your changes building OpenCV with Qt5 and Qt6. Qt6 does not have any issues during the build, but OpenCV cannot be compiled using Qt5 ( Steps to reproduce:
Qt5 output
|
Thanks for the feedback! I'm currently on vacation and will look into it in the second half of August. ;-) |
@bebuch friendly reminder. |
In fact I had forgotten, thanks for reminding me! :-) |
Question: What is the minimal Qt5 version we need to support? 5.12 LTS is out of support, do we still need to support it in the most current OpenCV?
|
@bebuch we usually relay on popular Linux distributions like Ubuntu, RHEL, Fedora. In case if the popular distros (LTS) provide unsupported version of QT it makes sense to fix the code. |
Okay, that makes Debian Buster (oldstable) with Qt 5.11 probably the oldest one. I will test on its Docker container. |
Ready for the next review. I tested on Debian 11 with Qt 5.11, Ubuntu 20.04 with Qt 5.12 and Ubuntu 20.04 with Qt 6.3 (Qt source build). |
…ted for Qt6 [YOCIMX-6355] This is a workaround to get pass the following build error: /home/bamboo/build/5.15-kirkstone-regression/fsl-imx-internal-xwayland/mx8/yocto/build/tmp/work/armv8a-mx8-poky-linux/opencv/4.6.0.imx-r0/build/ modules/cvv/opencv_cvv_autogen/MXUWEOXILK/../../../../../contrib/modules/cvv/src/gui/call_tab.hpp:4:10: fatal error: QString: No such file or directory There is a pull request to add Qt6 support in opencv_contrib repo but it is not merged yet. opencv/opencv_contrib#3285 Signed-off-by: Neena Busireddy <[email protected]>
ping |
@alalek Thanks for the detailed fixes :-) And sorry for the delay, last week was busy. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contribution 👍
OpenCV can be compiled against Qt5 and Qt6. The Contrib CVV module depends on Qt5 and has received an incomplete patch with #3072 that allows configuring but not compiling. CVV previously used some features that were deprecated in Qt5 and removed in Qt6.
This patch replaces the corresponding lines in the source code with functions that work in Qt5.15 LTS and Qt6.
This does fix the Issue #3146.
Note: CVV still uses
QRegExp
which can not directly replaced byQRegularExpression
. Therefor Qt6 movedQRegExp
to the moduleCore5Compat
, which requires afind_package
because it is not required by OpenCV main project.Pull Request Readiness Checklist
Patch to opencv_extra has the same branch name.