unresolved external symbol for "qt_check_for_QGADGET_macro" function
Unsolved
Installation and Deployment
-
Hello, everybody.
I tried to compile Qt 5.6.0 from sources using the MSVC 2008 and during the process i got the following errors:
link /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /DLL /LTCG /SUBSYSTEM:WINDOWS /VERSION:5.6 /MANIFEST /MANIFESTFILE:..\..\lib\Qt5Gui.dll.embed.manifest /OUT:..\..\lib\Qt5Gui.dll @C:\Users\nikbol\AppData\Local\Temp\nmB1F7.tmp Creating library ..\..\lib\Qt5Gui.lib and object ..\..\lib\Qt5Gui.exp qguivariant.obj : error LNK2001: unresolved external symbol "public: void __thiscall QFont::qt_check_for_QGADGET_macro(void)" (?qt_check_for_QGADGET_macro@QFont@@QAEXXZ) qguivariant.obj : error LNK2001: unresolved external symbol "public: void __thiscall QPalette::qt_check_for_QGADGET_macro(void)" (?qt_check_for_QGADGET_macro@QPalette@@QAEXXZ) qguivariant.obj : error LNK2001: unresolved external symbol "public: void __thiscall QKeySequence::qt_check_for_QGADGET_macro(void)" (?qt_check_for_QGADGET_macro@QKeySequence@@QAEXXZ) qguivariant.obj : error LNK2001: unresolved external symbol "public: void __thiscall QTextFormat::qt_check_for_QGADGET_macro(void)" (?qt_check_for_QGADGET_macro@QTextFormat@@QAEXXZ) ..\..\lib\Qt5Gui.dll : fatal error LNK1120: 4 unresolved externals
It seems to me, that the problem is with LTCG flag, that i used for configration. But the only thing i was able to find, is just not to use it.
My build script:
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat" x86
SET _ROOT=D:\_myDocs\qt-everywhere-opensource-src-5.6.0\src
SET PATH=%_ROOT%\qtbase\bin;%_ROOT%\gnuwin32\bin;%PATH%
SET QMAKESPEC=win32-msvc2008
SET _ROOT=call ../src/configure.bat -opengl desktop -opensource -debug-and-release -mp -ltcg -nomake examples -nomake tests -no-icu -confirm-license