Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-53618

WebEngine core fails to link when building from source

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.6.2, 5.7.1
    • 5.6.0 Beta, 5.7.0 RC
    • WebEngine
    • None
    • Windows 7 64-bit, MSVC 2013 and 2015
    • 880824649aa617a715b6d9a31fd1dba18df75a7b

    Description

      I am trying to compile on x86, release/shared version of Qt5.70-rc (obtained from: http://download.qt.io/snapshots/qt/5.7/5.7.0-rc/latest_src/)

      I build with:
      configure.bat

      -opensource -confirm-license -platform win32-msvc2013 -mp -release -shared -prefix D:\dist\qt5-5.7.0-rc-vs2013\qt5-x86-shared-release -opengl desktop -no-angle -nomake examples -nomake tests -no-compile-examples -skip translations -no-incredibuild-xge -sse2 -no-dbus -no-audio-backend -qt-sql-mysql -qt-sql-sqlite -openssl-linked -I D:\dev\openssl\openssl-1.0.2h-vs2013\include -L D:\dev\openssl\openssl-1.0.2h-vs2013\lib OPENSSL_LIBS="-llibeay32MD -lssleay32MD -lgdi32 -lcrypt32 -lws2_32 -ladvapi32 -luser32"

      It fails when trying to link Qt5WebEngineCore.lib with:

      	cl -c -Yc -Fp.pch\release\Qt5WebEngineCore_pch.pch -Fo.pch\release\Qt5WebEngineCore_pch.obj -nologo -Zc:wchar_t -FS -O2 -MD -Zc:strictStrings -D_HAS_EXCEPTIONS=0 -MP -GR -W3 -w34100 -w34189 -w44996 -DUNICODE -DWIN32 -DQT_BUILD_WEBENGINECORE_LIB -DQT_BUILDING_QT -D_CRT_SECURE_NO_WARNINGS -D_USE_MATH_DEFINES -DQT_NO_CAST_TO_ASCII -DQT_ASCII_CAST_WARNINGS -DQT_MOC_COMPAT -DQT_USE_QSTRINGBUILDER -DQT_DEPRECATED_WARNINGS -DQT_DISABLE_DEPRECATED_BEFORE=0x040800 -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_QUICK_LIB -DQT_GUI_LIB -DQT_WEBCHANNEL_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_POSITIONING_LIB -DQT_CORE_LIB -DQT_QUICK_LIB -DQT_WEBENGINECOREHEADERS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DNDEBUG -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtwebengine\src\core -I. -ID:\dev\openssl\openssl-1.0.2h-vs2013\include -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtwebengine\src\3rdparty\chromium -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtwebengine\include -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtwebengine\include\QtWebEngineCore -I..\..\include -I..\..\include\QtWebEngineCore -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtwebengine\include\QtWebEngineCore\5.7.0 -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtwebengine\include\QtWebEngineCore\5.7.0\QtWebEngineCore -Itmp -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtdeclarative\include -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtdeclarative\include\QtQuick -ID:\qb\qt5-x86-shared-r\qtdeclarative\include -ID:\qb\qt5-x86-shared-r\qtdeclarative\include\QtQuick -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtbase\include -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtbase\include\QtGui -ID:\qb\qt5-x86-shared-r\qtbase\include -ID:\qb\qt5-x86-shared-r\qtbase\include\QtGui -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtwebchannel\include -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtwebchannel\include\QtWebChannel -ID:\qb\qt5-x86-shared-r\qtwebchannel\include -ID:\qb\qt5-x86-shared-r\qtwebchannel\include\QtWebChannel -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtdeclarative\include\QtQml -ID:\qb\qt5-x86-shared-r\qtdeclarative\include\QtQml -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtbase\include\QtNetwork -ID:\qb\qt5-x86-shared-r\qtbase\include\QtNetwork -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtlocation\include -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtlocation\include\QtPositioning -ID:\qb\qt5-x86-shared-r\qtlocation\include -ID:\qb\qt5-x86-shared-r\qtlocation\include\QtPositioning -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtbase\include\QtCore -ID:\qb\qt5-x86-shared-r\qtbase\include\QtCore -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtdeclarative\include\QtQuick\5.7.0 -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtdeclarative\include\QtQuick\5.7.0\QtQuick -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtbase\include\QtGui\5.7.0 -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtbase\include\QtGui\5.7.0\QtGui -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtdeclarative\include\QtQml\5.7.0 -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtdeclarative\include\QtQml\5.7.0\QtQml -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtbase\include\QtCore\5.7.0 -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtbase\include\QtCore\5.7.0\QtCore -I.moc\release -ID:\opensource\qt-everywhere-opensource-src-5.7.0-rc\qtbase\mkspecs\win32-msvc2013  -TP ..\..\include\QtWebEngineCore\QtWebEngineCoreDepends
      QtWebEngineCoreDepends
      	link /NOLOGO /DYNAMICBASE /NXCOMPAT /MACHINE:X86 /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\win8\um\x86" /DELAYLOAD:dbghelp.dll /DELAYLOAD:dwmapi.dll /DELAYLOAD:shell32.dll /DELAYLOAD:uxtheme.dll /DELAYLOAD:cfgmgr32.dll /DELAYLOAD:powrprof.dll /DELAYLOAD:setupapi.dll /DELAYLOAD:mf.dll /DELAYLOAD:mfplat.dll /DELAYLOAD:mfreadwrite.dll /DELAYLOAD:BluetoothApis.dll /DELAYLOAD:Bthprops.cpl /DELAYLOAD:dinput8.dll /DELAYLOAD:user32.dll /DELAYLOAD:d3d9.dll /DELAYLOAD:d3d11.dll /DELAYLOAD:dxva2.dll /maxilksize:0x7ff00000 /safeseh /dynamicbase /ignore:4199 /ignore:4221 /nxcompat /largeaddressaware /SUBSYSTEM:WINDOWS,5.01 /INCREMENTAL:NO /FIXED:NO /OPT:REF /OPT:ICF /PROFILE wininet.lib dnsapi.lib version.lib msimg32.lib ws2_32.lib usp10.lib psapi.lib dbghelp.lib winmm.lib shlwapi.lib cfgmgr32.lib powrprof.lib setupapi.lib advapi32.lib kernel32.lib gdi32.lib winspool.lib comdlg32.lib shell32.lib ole32.lib oleaut32.lib user32.lib uuid.lib odbc32.lib odbccp32.lib delayimp.lib credui.lib netapi32.lib /SAFESEH /DYNAMICBASE /NXCOMPAT /OPT:REF @D:/qb/qt5-x86-shared-r/qtwebengine/src/core/api/Release\qtwebenginecoreapi.lib.objects /INCREMENTAL:NO /DLL /SUBSYSTEM:WINDOWS /VERSION:5.7 /MANIFEST:embed /OUT:..\..\lib\Qt5WebEngineCore.dll @C:\Users\stathis\AppData\Local\Temp\nmB6C0.tmp
         Creating library ..\..\lib\Qt5WebEngineCore.lib and object ..\..\lib\Qt5WebEngineCore.exp
      qwebengineurlrequestjob.obj : error LNK2019: unresolved external symbol "public: static struct QMetaObject const QtWebEngineCore::URLRequestCustomJobDelegate::staticMetaObject" (?staticMetaObject@URLRequestCustomJobDelegate@QtWebEngineCore@@2UQMetaObject@@B) referenced in function "public: static class QString __cdecl QtWebEngineCore::URLRequestCustomJobDelegate::tr(char const *,char const *,int)" (?tr@URLRequestCustomJobDelegate@QtWebEngineCore@@SA?AVQString@@PBD0H@Z)
      QtWebEngineCore.url_request_custom_job.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const QtWebEngineCore::URLRequestCustomJobDelegate::staticMetaObject" (?staticMetaObject@URLRequestCustomJobDelegate@QtWebEngineCore@@2UQMetaObject@@B)
      
      ...
      ...
      ...
      ...
      
      QtWebEngineCore.url_request_custom_job_delegate.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall QtWebEngineCore::URLRequestCustomJobDelegate::qt_metacall(enum QMetaObject::Call,int,void * *)" (?qt_metacall@URLRequestCustomJobDelegate@QtWebEngineCore@@UAEHW4Call@QMetaObject@@HPAPAX@Z)
      ..\..\lib\Qt5WebEngineCore.dll : fatal error LNK1120: 31 unresolved externals
      NMAKE : fatal error U1077: 'D:\dev\vs2013\VC\BIN\link.EXE' : return code '0x460'
      Stop.
      NMAKE : fatal error U1077: 'D:\dev\vs2013\VC\BIN\nmake.exe' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: '(' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      NMAKE : fatal error U1077: 'cd' : return code '0x2'
      Stop.
      

      check the attachment for full config / build logs. Same problem with v5.6.0.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kkohne Kai Köhne
              sigmoidal sigma
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes