-
Notifications
You must be signed in to change notification settings - Fork 891
Turn back on Qt support for macOS #540
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
Comments
Qt back-end is heavy dependency to build, maintain and update for each MacOS version. Also the dependency raises conflict with other Qt-based packages like PyQT. OpenCV team does not plan to step back to Qt back-end in nearest future without strong technical reason or strong community demand. As alternative you can build own instance of package with custom dependencies. |
I believe OpenCV in conda-forge uses Qt: # install miniconda
conda create -n opencv -c conda-forge opencv
conda activate opencv
python -c 'import cv2; print(cv2.getBuildInformation())' |
I definitely agree that Qt is a heavy dependency, but it also adds several very useful features to the image viewer (the zoom and pan is what I use the most), so I'd love to see it turned back on because I prefer being able to use software from |
To build a custom version with your own dependencies (including Qt): Check readme for more detailed build instructions: https://github.com/opencv/opencv-python#manual-builds |
For a custom build to add Qt support, wouldn't the removed code/build need to be put back and a flag added to enable it? |
I'm not sure if I follow, but if CMake does not find Qt (or other dependencies) from your system automatically, then you'll need to provide custom flags such as |
Doesn't this commit remove the ability to build with Qt? |
No, it doesn't. All those lines are related to the CI build in this repository when See: Line 175 in c1cc7e5
Local builds can be configured freely to include anything you wish. By default |
BTW, Qt automatic searching is disabled by default in OpenCV upstream repo: https://github.com/opencv/opencv/blob/4.5.3/CMakeLists.txt#L332 |
Expected behaviour
Qt support is still used on macOS
Actual behaviour
Cocoa support is used so advanced functionality (like zooming) isn't available
Steps to reproduce
pip install opencv-python
11.5.2
x86
4.5.3.56
Related to #376 and #423
Issue submission checklist
opencv-python
I'd like to help get the Qt support turned back on. Qt 5.15.2 is available now and there were 56 macOS bug fixes in 5.15.1 and then 11 macOS bug fixes in 5.15.2, so I'm hopeful that the issue is resolved and turning back on Qt support would work again
The text was updated successfully, but these errors were encountered: