Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Build error when activating both cvv and world

Platform: Windows 10, VS2017, Qt 5.12.1, OpenCV (multiple version, master, 4.0.1, 3.4.5)

There is no build error when I activate openCV contrib and "WITH_QT" being ON. However, errors occur when I activate openCV contrib, Qt AND "BUILD_opencv_world". Build errors look like something as:

stfl_query_widget_lineedit.obj : error LNK2001: unresolved external symbol "public: virtual int __cdecl cvv::qtutil::STFLQueryWidgetCompleter::qt_metacall(enum QMetaObject::Call,int,void * *)" ([email protected]@[email protected]@@[email protected]@@[email protected])

which appears Qt moc error. If I disable the cvv module in contrib, the build will succeed, even though "BUILD_opencv_world" is still set to ON.

How can I change the build script so that both cvv and world modules can be built?

Thanks in advance.