You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, everything is fine when I only choose "build_opencv_world" or "WITH_QT".
And in QT assistant, I find that "In Qt 6, the UNICODE and _UNICODE compiler definitions are set by default for targets that link against Qt modules".
Steps to reproduce
choose "WITH_QT" (version 6.7.0) and "build_opencv_world" in cmake-gui
Issue submission checklist
I report the issue, it's not a question
I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
I updated to the latest OpenCV version and the issue is still there
There is reproducer code and related data files (videos, images, onnx, etc)
The text was updated successfully, but these errors were encountered:
System Information
OpenCV: 4.9.0
Operating System / Platform: WIN 11 Home
Compiler & compiler version: MSVC 1939
CMake version: 3.29.2
Detailed description
I choose "WITH_QT" (version 6.7.0) and "build_opencv_world" in cmake-gui, part of error logs are as follows:
D:\OPENCV\opencv-4.9.0\modules\core\src\trace.cpp(211,46): error C2664: “__itt_domain *(const wchar_t *)”: 无法将参数 1 从“const char [12]”转换为“const wchar_t *”
D:\OPENCV\opencv-4.9.0\modules\core\src\trace.cpp(211,46):
指向的类型不相关; 转换需要 reinterpret_cast、C 样式强制转换或带圆括号的函数样式强制转换
D:\OPENCV\opencv-4.9.0\modules\core\src\trace.cpp(241,61): error C2664: “__itt_string_handle *(const wchar_t *)”: 无法将参数 1 从“const char *const ”转换为“const wchar_t *”
D:\OPENCV\opencv-4.9.0\modules\core\src\trace.cpp(241,61):
指向的类型不相关; 转换需要 reinterpret_cast、C 样式强制转换或带圆括号的函数样式强制转换
However, everything is fine when I only choose "build_opencv_world" or "WITH_QT".
And in QT assistant, I find that "In Qt 6, the UNICODE and _UNICODE compiler definitions are set by default for targets that link against Qt modules".
Steps to reproduce
choose "WITH_QT" (version 6.7.0) and "build_opencv_world" in cmake-gui
Issue submission checklist
The text was updated successfully, but these errors were encountered: