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
I found that the reason is that qt needs to be AUTOMOC before target creation, but qt in cvv is only found in cvv's cmakelist. When compiling the opencv_world, the cmakelist in cvv was not run, so there are no qt and moc for the opencv_world.
As a result, I made some modifications in cmakelist in opencv_world, moc the source and header files of cvv in opencv_world(but I don't know why I can't set only the moc part of the file, so it now moc all the source and header files), and after the modifications, I compiled a opencv_world.dll file linked to qt.
System Information
OpenCV version: 4.9.0
Operating System / Platform: Windows 10
Compiler & compiler version: VS 2022
Detailed description
输出-生成.txt
It seems that it is because there was no moc applied to the object of qt, and the file moc_xxx was not found in the compilation directory
Steps to reproduce
clone
output
install qt 5.15.2 msvc2019
Install through the official QT installer
open cmake-gui
Issue submission checklist
The text was updated successfully, but these errors were encountered: