-
Notifications
You must be signed in to change notification settings - Fork 5.8k
OpenCV 4.5.5 building CVV module fails with Qt6 selected #3146
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
If you don't need "cvv" module, then you can disable it: |
Well, this is an option, yes, but the underlying problem is strange since I built the same key settings but with Qt version 5.15.2 on another machine and it didn't throw out any errors. After i switched off the opencv_cvv then i got the error building opencv_rgbd which originates from openGL. [1251/1906] Linking CXX executable bin/opencv_test_rgbd Is this also be related with Qt6 ? I could built after switching off opencv_rgbd, but this was not the thing i wanted. |
Do you have this patch for opencv_contrib? #3128 |
Yes, i have it in CMakeLists.txt file in folder /opt/opencv/opencv_contrib/modules/rgbd |
It looks strange. Could you please dump variable (before
Could you please dump linker parameters of lib/libopencv_rgbd.so.4.5.5 ?
|
Same with 4.6.0 and GCC 12. |
Looks like #3208 will fix this. |
System information (version)
Detailed description
I am trying to build OpenCV 4.5.5 from source but it fails when compiling CVV module and throws out QString: No such file or directory
[2/1368] Building CXX object modules/c...v_cvv.dir/src/gui/image_call_tab.cpp.o
FAILED: modules/cvv/CMakeFiles/opencv_cvv.dir/src/gui/image_call_tab.cpp.o
/usr/bin/c++ -DCVAPI_EXPORTS -D_USE_MATH_DEFINES -D__OPENCV_BUILD=1 -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/opt/opencv/release/modules/cvv -I/opt/opencv/opencv_contrib/modules/cvv -I/opt/opencv/release/modules/cvv/opencv_cvv_autogen/include -I/opt/opencv/release/3rdparty/ippicv/ippicv_lnx/icv/include -I/opt/opencv/release/3rdparty/ippicv/ippicv_lnx/iw/include -I/opt/opencv/release -I/opt/opencv/opencv_contrib/modules/cvv/include -I/opt/opencv/modules/core/include -I/opt/opencv/modules/flann/include -I/opt/opencv/modules/imgproc/include -I/opt/opencv/modules/features2d/include -isystem /opt/intel/oneapi/mkl/2022.0.1/include -isystem /usr/include/eigen3 -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wundef -Winit-self -Wpointer-arith -Wsign-promo -Wuninitialized -Wsuggest-override -Wno-delete-non-virtual-dtor -Wno-comment -Wimplicit-fallthrough=3 -Wno-strict-overflow -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -fopenmp -Wno-shadow -Wno-missing-declarations -O3 -DNDEBUG -DNDEBUG -fPIC -std=c++11 -MD -MT modules/cvv/CMakeFiles/opencv_cvv.dir/src/gui/image_call_tab.cpp.o -MF modules/cvv/CMakeFiles/opencv_cvv.dir/src/gui/image_call_tab.cpp.o.d -o modules/cvv/CMakeFiles/opencv_cvv.dir/src/gui/image_call_tab.cpp.o -c /opt/opencv/opencv_contrib/modules/cvv/src/gui/image_call_tab.cpp
/opt/opencv/opencv_contrib/modules/cvv/src/gui/image_call_tab.cpp:1:10: fatal error: QString: No such file or directory
1 | #include
| ^~~~~~~~~
compilation terminated.
Steps to reproduce
<!-WITH_QT on
Platform:
Timestamp: 2021-12-30T12:20:27Z
Host: Linux 5.11.0-43-generic x86_64
CMake: 3.22.1
CMake generator: Ninja
CMake build tool: /usr/bin/ninja\n"
Configuration: Release
GUI: QT6
QT: YES (ver 6.2.2 )
QT OpenGL support: YES (Qt6::OpenGL )
GTK+: YES (ver 3.24.20)
GThread : YES (ver 2.64.6)
GtkGlExt: NO
OpenGL support: YES (/usr/lib/x86_64-linux-gnu/libOpenGL.so /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libGLU.so)
The problem is somewhat related with Qt version 6 since I have built it in my other computer with all the same settings but the Qt version 5.15.2
Is there any way to modify OpenCVFindGUILibs.cmake file and make Qt6 compatible with OpenCV and Contrib modules?
-->
Issue submission checklist
forum.opencv.org, Stack Overflow, etc and have not found solution
The text was updated successfully, but these errors were encountered: