Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
6.2.0
-
None
-
Visual Studio 16.11.5 x64
Windows 10 x64 Build 19043
Python 3.10
Qt Creator 5.0.2
CMake 3.21.6 x64
Ninja 1.10.2
Perl 5.34.0 (included with GIT 2.33.1.windows.1)
Description
I compiled static QT 6.2.0 successfully with: C:/Qt/6.2.0/Src/configure.bat -static -debug-and-release -prefix "C:\Qt\6.2.0\msvc2019_64_static" -skip qtwebengine -skip qtwayland -skip qt3d -skip qtquick3d
When building my project using this self compiled QT build, I get the following three errors:
Qt6Gui.lib(qaction.cpp.obj):-1: error: LNK2005: "private: static void __cdecl QAction::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall@QAction@@CAXPEAVQObject@@W4Call@QMetaObject@@HPEAPEAX@Z) is already defined in moc_qaction.obj.
Qt6Gui.lib(qaction.cpp.obj):-1: error: LNK2005: "public: static struct QMetaObject const QAction::staticMetaObject" (?staticMetaObject@QAction@@2UQMetaObject@@B) is already defined in moc_qaction.obj.
....exe:-1: error: LNK1169: one or more multiply defined symbols found
Building my project using the dynamic QT 6.2.0 MSVC x64 build downloaded from QT maintenance tool works fine without any errors.