-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Prompt for unresolved external symbols when compiling CVV modules #3629
Comments
|
As long as the BUILD_opencv_world is not checked, it can be successfully built. I don't know if this is intentional or not |
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. After testing, it works very well fix pr:opencv/opencv#24921 |
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: