Skip to content

fix(cvv): replace CMAKE_AUTOMOC with QT_WRAP_CPP for opencv_world build#4084

Open
727724euit202-hub wants to merge 2 commits intoopencv:4.xfrom
727724euit202-hub:fix/cvv-automoc-opencv-world
Open

fix(cvv): replace CMAKE_AUTOMOC with QT_WRAP_CPP for opencv_world build#4084
727724euit202-hub wants to merge 2 commits intoopencv:4.xfrom
727724euit202-hub:fix/cvv-automoc-opencv-world

Conversation

@727724euit202-hub
Copy link
Copy Markdown

Fixes #3629

CVV module uses CMAKE_AUTOMOC which doesn't work
properly during opencv_world build, causing linker
errors for unresolved Qt meta-object symbols.

Replace CMAKE_AUTOMOC with explicit QT5/QT6_WRAP_CPP()
calls and use ocv_glob_module_sources() to include MOC
files, following the same approach used in highgui module.

Tested on Windows 10 with Visual Studio 2022 and Qt 6.7.2.
Build succeeded with no linker errors!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prompt for unresolved external symbols when compiling CVV modules

1 participant