[Interest] Issues building 5.13.0 with VS 2019

Volker Enderlein volker.enderlein at ifm-chemnitz.de
Mon Jun 24 10:37:22 CEST 2019


Hi,

I tried to build Qt 5.13.0 from source with current VS 2019 but it 
failed in QtWebEngine.

It failed with the following message (sorry for the german compiler 
commands):

    [5338/26172] CXX obj/third_party/icu/bundled_icui18n/brktrans.obj
    FAILED: obj/third_party/icu/bundled_icui18n/brktrans.obj
    ninja -t msvc -e environment.x86 -- "C:\Program Files
    (x86)\Microsoft Visual
    Studio\2019\Professional\VC\Tools\MSVC\14.21.27702\bin\HostX64\x86/cl.exe"
    /nologo /showIncludes  -DU_I18N_IMPLEMENTATION -DUSE_AURA=1
    -DNO_TCMALLOC -DOFFICIAL_BUILD -DCHROMIUM_BUILD -DTOOLKIT_QT
    -D_HAS_EXCEPTIONS=0 -D__STD_C -D_CRT_RAND_S
    -D_CRT_SECURE_NO_DEPRECATE -D_SCL_SECURE_NO_DEPRECATE
    -D_ATL_NO_OPENGL -D_WINDOWS -DCERT_CHAIN_PARA_HAS_EXTRA_FIELDS
    -DPSAPI_VERSION=2 -DWIN32 -D_SECURE_ATL -D_USING_V110_SDK71_
    -DWINAPI_FAMILY=WINAPI_FAMILY_DESKTOP_APP -DWIN32_LEAN_AND_MEAN
    -DNOMINMAX -D_UNICODE -DUNICODE -DNTDDI_VERSION=0x0A000002
    -D_WIN32_WINNT=0x0A00 -DWINVER=0x0A00 -DNDEBUG -DNVALGRIND
    -DDYNAMIC_ANNOTATIONS_ENABLED=0 -D_CRT_NONSTDC_NO_WARNINGS
    -D_CRT_NONSTDC_NO_DEPRECATE -DHAVE_DLOPEN=0
    -DUCONFIG_ONLY_HTML_CONVERSION=1 -DU_CHARSET_IS_UTF8=1
    -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1
    -DU_STATIC_IMPLEMENTATION -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE
    -DUCHAR_TYPE=wchar_t -Igen -I../../3rdparty/chromium
    -I../../3rdparty/chromium/third_party/icu/source/common
    -I../../3rdparty/chromium/third_party/icu/source/i18n /utf-8 /Gy /FS
    /bigobj /d2FastFail /Zc:sizedDealloc- /O1 /Ob2 /Oy- /Zc:inline /Gw
    /Oi /MD /W3 /wd4800 /wd4267 /wd4996 /wd4091 /wd4127 /wd4251 /wd4275
    /wd4312 /wd4324 /wd4351 /wd4355 /wd4503 /wd4589 /wd4611 /wd4100
    /wd4121 /wd4244 /wd4505 /wd4510 /wd4512 /wd4610 /wd4838 /wd4995
    /wd4996 /wd4456 /wd4457 /wd4458 /wd4459 /wd4200 /wd4201 /wd4204
    /wd4221 /wd4245 /wd4267 /wd4305 /wd4389 /wd4702 /wd4701 /wd4703
    /wd4661 /wd4706 /wd4715 /wd4267 /wd4005 /wd4068 /wd4267 /utf-8 /TP
    /GR /wd4577 /c
    ../../3rdparty/chromium/third_party/icu/source/i18n/brktrans.cpp
    /Foobj/third_party/icu/bundled_icui18n/brktrans.obj
    /Fd"obj/third_party/icu/bundled_icui18n_cc.pdb"
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\3rdparty\chromium\third_party\icu\source\common\umutex.h(74):
    error C2027: Verwendung des undefinierten Typs "std::atomic<int>"
    C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Professional\VC\Tools\MSVC\14.21.27702\include\atomic(1824):
    note: Siehe Deklaration von "std::atomic<int>"
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\3rdparty\chromium\third_party\icu\source\common\umutex.h(78):
    error C2027: Verwendung des undefinierten Typs "std::atomic<int>"
    C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Professional\VC\Tools\MSVC\14.21.27702\include\atomic(1824):
    note: Siehe Deklaration von "std::atomic<int>"
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\3rdparty\chromium\third_party\icu\source\common\umutex.h(82):
    error C2027: Verwendung des undefinierten Typs "std::atomic<int>"
    C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Professional\VC\Tools\MSVC\14.21.27702\include\atomic(1824):
    note: Siehe Deklaration von "std::atomic<int>"
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\3rdparty\chromium\third_party\icu\source\common\umutex.h(86):
    error C2027: Verwendung des undefinierten Typs "std::atomic<int>"
    C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Professional\VC\Tools\MSVC\14.21.27702\include\atomic(1824):
    note: Siehe Deklaration von "std::atomic<int>"
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\3rdparty\chromium\third_party\icu\source\common\umutex.h(233):
    error C2079: "icu_63::UInitOnce::fState" verwendet undefiniertes
    struct "std::atomic<int>"
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\3rdparty\chromium\third_party\icu\source\common\umutex.h(236):
    error C2664: "int32_t
    icu_63::umtx_loadAcquire(icu_63::u_atomic_int32_t &)" :
    Konvertierung von Argument 1 von "int" in "icu_63::u_atomic_int32_t
    &" nicht m”glich
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\3rdparty\chromium\third_party\icu\source\common\umutex.h(261):
    error C2664: "int32_t
    icu_63::umtx_loadAcquire(icu_63::u_atomic_int32_t &)" :
    Konvertierung von Argument 1 von "int" in "icu_63::u_atomic_int32_t
    &" nicht m”glich
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\3rdparty\chromium\third_party\icu\source\common\umutex.h(276):
    error C2664: "int32_t
    icu_63::umtx_loadAcquire(icu_63::u_atomic_int32_t &)" :
    Konvertierung von Argument 1 von "int" in "icu_63::u_atomic_int32_t
    &" nicht m”glich
    ninja: build stopped: subcommand failed.
    jom:
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\core\Makefile.gn_run.Release
    [run_ninja] Error 1
    jom:
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\core\Makefile.gn_run
    [release] Error 2
    jom:
    C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\core\Makefile
    [sub-gn_run-pro-make_first] Error 2
    jom: C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\src\Makefile
    [sub-core-make_first] Error 2
    jom: C:\Temp\Qt\qt-everywhere-src-5.13.0\qtwebengine\Makefile
    [sub-src-make_first] Error 2
    jom: C:\Temp\Qt\qt-everywhere-src-5.13.0\Makefile
    [module-qtwebengine-make_first] Error 2


I did an in-source build as a shadow build did not produce valid cmake 
config files in the past for different other Qt versions.

My build commands were as follows in directory C:\Temp\Qt:


    cd qt-everywhere-src-5.13.0
    "C:\Program Files (x86)\Microsoft Visual
    Studio\2019\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64_x86
    set BUILD_ROOT=C:\Temp\Qt\qt-everywhere-src-5.13.0
    set
    PATH=%BUILD_ROOT%\qtbase\bin;C:\Temp\Qt\jom;C:\Temp\Qt\GnuWin32\bin;%PATH%
    .\configure.bat -platform win32-msvc -prefix N:\Qt\5.13.0\msvc2019
    -silent -release -force-debug-info -opensource -confirm-license
    -nomake tests -nomake examples -opengl dynamic -qt-zlib -qt-libjpeg
    -qt-libpng -qt-pcre -plugin-sql-sqlite -plugin-sql-odbc -make-tool
    jom > ConfigureOutput_msvc2019.txt 2>&1
    jom > BuildOutput_msvc2019.txt 2>&1


Python, Perl, and Ruby are installed and in the PATH.


Is this a valid method to build Qt or should I try a different recipe?

As I always struggle when compiling Qt from source. So are there any 
good blogs/web sites that cover building Qt in depth?


Thanks in advance for any help.


Cheers, Volker

-- 



More information about the Interest mailing list