Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Compile QtWebEngine causes linker error

Compile QtWebEngine causes linker error

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 1 Posters 841 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MKara
    wrote on last edited by MKara
    #1

    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.obj

    Because 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.

    M 1 Reply Last reply
    0
    • M MKara

      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.obj

      Because 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.

      M Offline
      M Offline
      MKara
      wrote on last edited by MKara
      #2

      You 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 detected

      jom: 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

      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved