Compile QtWebEngine causes linker error
-
wrote on 7 Dec 2016, 12:52 last edited by MKara 12 Jul 2016, 12:54
Hi everyone,
I tried to compile Qt 5.7.0 source code with web engine module on Windows 7 with Visual Studio 2013 Update 5. If I compile the source code without web engine, everything works fine. However, I am in trouble with compiling web engine module and getting following linker error for all qtwebengine objects.
'_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in qtwebenginecoreglobal.objBecause of some special reason, we have to use qt debug dll's like release. For this, we made following changes :
- Go to Qt directory and open msvc-desktop.conf file (D:\Qt\Qt5.7.0\qtbase\mkspecs\common\msvc-desktop.conf)
- Change -MDd params to -MD for debug flags
QMAKE_CFLAGS_DEBUG = -Zi -MD
And we run the following commands :
- configure -opensource -confirm-license -mp -no-compile-examples -nomake examples -nomake tests -make tools -opengl desktop -no-angle -no-icu -skip qtmultimedia -skip location -skip sensors -debug-and-release -no-warnings-are-errors -platform win32-msvc2013 -prefix D:\Qt\Qt5.7.0_x64 -openssl -I D:\3rdParty\OpenSSL\OpenSSL-Win64\include -L D:\3rdParty\OpenSSL\OpenSSL-Win64
- D:\3rdParty\jom_1_1_0\jom.exe module-qtwebengine
Thanks for your help.
-
Hi everyone,
I tried to compile Qt 5.7.0 source code with web engine module on Windows 7 with Visual Studio 2013 Update 5. If I compile the source code without web engine, everything works fine. However, I am in trouble with compiling web engine module and getting following linker error for all qtwebengine objects.
'_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in qtwebenginecoreglobal.objBecause of some special reason, we have to use qt debug dll's like release. For this, we made following changes :
- Go to Qt directory and open msvc-desktop.conf file (D:\Qt\Qt5.7.0\qtbase\mkspecs\common\msvc-desktop.conf)
- Change -MDd params to -MD for debug flags
QMAKE_CFLAGS_DEBUG = -Zi -MD
And we run the following commands :
- configure -opensource -confirm-license -mp -no-compile-examples -nomake examples -nomake tests -make tools -opengl desktop -no-angle -no-icu -skip qtmultimedia -skip location -skip sensors -debug-and-release -no-warnings-are-errors -platform win32-msvc2013 -prefix D:\Qt\Qt5.7.0_x64 -openssl -I D:\3rdParty\OpenSSL\OpenSSL-Win64\include -L D:\3rdParty\OpenSSL\OpenSSL-Win64
- D:\3rdParty\jom_1_1_0\jom.exe module-qtwebengine
Thanks for your help.
wrote on 17 Dec 2016, 07:57 last edited by MKaraYou can see detailed error messages below:
angle_common.lib(angle_common.utilities.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in qtwebenginecoreglobal.obj
angle_common.lib(angle_common.Float16ToFloat32.obj) : error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '2' doesn't match value '0' in qtwebenginecoreglobal.obj
angle_common.lib(angle_common.Float16ToFloat32.obj) : error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MDd_DynamicDebug' doesn't match value 'MD_DynamicRelease' in qtwebenginecoreglobal.obj
Creating library ....\lib\Qt5WebEngineCored.lib and object ....\lib\Qt5WebEngineCored.exp
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
....\lib\Qt5WebEngineCored.dll : fatal error LNK1319: 17166 mismatches detectedjom: D:\Qt\Qt5.7.0\qtwebengine\src\core\Makefile.core_module.Debug [....\lib\Qt5WebEngineCored.dll] Error 1319
jom: D:\Qt\Qt5.7.0\qtwebengine\src\core\Makefile.core_module [debug-all] Error 2