Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
6.4.2
-
None
-
Windows 10 Version 22H2
Visual Studio 2019
Description
Hello!
I would like to build Qt 6.4.2 for Visual Studio 2019 compiler. The problem is, it fails with the following error:
********************************************************************** ** Visual Studio 2019 Developer Command Prompt v16.11.23 ** Copyright (c) 2021 Microsoft Corporation ********************************************************************** [vcvarsall.bat] Environment initialized for: 'x64'C:\Windows\System32>cd C:\QtBuildC:\QtBuild>Advanced_Qt6_Configure_x86_x64_Qt_Skip_QtWebEngine.bat ==========================================================================================Enter path to the Qt source directory: C:\QtBuild\qt-everywhere-src-6.4.2 Do you want to remove the Qt directory (Y/N): N Do you want to start Qt build (Y/N): Y Qt source path: C:\QtBuild\qt-everywhere-src-6.4.2 Qt build type (Shared/Static): Shared Qt build mode (Debug/Release): Debug MySQL include dir path: C:\\MySQL\\mysql-8.0.31-winx64\\debug\\include MySQL libs path (for example C:\\...\\test.lib): C:\\MySQL\\mysql-8.0.31-winx64\\debug\\lib\\libmysql.lib OpenSSL root path: C:\\OpenSSL\\openssl-1.1.1s\\shared\\x64\\debug Enter Qt installation path: C:\\Qt\\6.4.2\\msvc2019_64 Enter Qt out-of-source build path: C:\\QtBuild\\qt-everywhere-src-6.4.2\\qtBuild Enter Qt compiler (example: msvc2019): msvc2019 -- The CXX compiler identification is MSVC 19.29.30147.0 -- The C compiler identification is MSVC 19.29.30147.0 -- The ASM compiler identification is MSVC -- Found assembler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done Checking dependencies of submodule 'qtbase' Checking dependencies of submodule 'qtimageformats' Checking dependencies of submodule 'qtlanguageserver' Checking dependencies of submodule 'qtshadertools' Checking dependencies of submodule 'qtsvg' Checking dependencies of submodule 'qtdeclarative' Checking dependencies of submodule 'qtquicktimeline' Checking dependencies of submodule 'qtquick3d' Checking dependencies of submodule 'qtmultimedia' Checking dependencies of submodule 'qt3d' Checking dependencies of submodule 'qt5compat' Checking dependencies of submodule 'qtactiveqt' Checking dependencies of submodule 'qtcharts' Checking dependencies of submodule 'qtcoap' Checking dependencies of submodule 'qtconnectivity' Checking dependencies of submodule 'qtdatavis3d' Checking dependencies of submodule 'qtwebsockets' Checking dependencies of submodule 'qthttpserver' Checking dependencies of submodule 'qttools' Checking dependencies of submodule 'qtdoc' Checking dependencies of submodule 'qtlottie' Checking dependencies of submodule 'qtmqtt' Checking dependencies of submodule 'qtnetworkauth' Checking dependencies of submodule 'qtopcua' Checking dependencies of submodule 'qtserialport' Checking dependencies of submodule 'qtpositioning' Checking dependencies of submodule 'qtquick3dphysics' Checking dependencies of submodule 'qtremoteobjects' Checking dependencies of submodule 'qtscxml' Checking dependencies of submodule 'qtsensors' Checking dependencies of submodule 'qtserialbus' Checking dependencies of submodule 'qtspeech' Checking dependencies of submodule 'qttranslations' Checking dependencies of submodule 'qtvirtualkeyboard' Checking dependencies of submodule 'qtwayland' Checking dependencies of submodule 'qtwebchannel' Checking dependencies of submodule 'qtwebview' Skipping optional dependency 'qtwebengine' of 'qtwebview', because building 'qtwebengine' was explicitly disabled. Configuring submodule 'qtbase' -- Could NOT find md4c (missing: md4c_DIR) -- Could NOT find md4c (missing: md4c_DIR) Configuring submodule 'qtimageformats' Configuring submodule 'qtlanguageserver' Configuring submodule 'qtshadertools' Configuring submodule 'qtsvg' Configuring submodule 'qtdeclarative' Configuring submodule 'qtquicktimeline' Configuring submodule 'qtquick3d' Configuring submodule 'qtmultimedia' Configuring submodule 'qt3d' CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/render/CMakeLists.txt:7 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/scene3d/CMakeLists.txt:7 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/extras/CMakeLists.txt:7 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/scene2d/CMakeLists.txt:7 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/input/CMakeLists.txt:7 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/logic/CMakeLists.txt:7 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt3d/src/quick3d/imports/animation/CMakeLists.txt:7 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.Configuring submodule 'qt5compat' CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qt5compat/src/imports/graphicaleffects5/CMakeLists.txt:33 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.Configuring submodule 'qtactiveqt' Configuring submodule 'qtcharts' Configuring submodule 'qtcoap' Configuring submodule 'qtconnectivity' Configuring submodule 'qtdatavis3d' Configuring submodule 'qtwebsockets' CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qtwebsockets/src/imports/qmlwebsockets/CMakeLists.txt:1 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.Configuring submodule 'qthttpserver' Configuring submodule 'qttools' QtDesigner: WARNING: C:/QtBuild/qt-everywhere-src-6.4.2/qttools/src/designer/src/lib/uilib/formbuilder.h includes abstractformbuilder.h when it should include QtDesigner/abstractformbuilder.h Configuring submodule 'qtdoc' Configuring submodule 'qtlottie' Configuring submodule 'qtmqtt' Configuring submodule 'qtnetworkauth' Configuring submodule 'qtopcua' Configuring submodule 'qtserialport' Configuring submodule 'qtpositioning' Configuring submodule 'qtquick3dphysics' Configuring submodule 'qtremoteobjects' Configuring submodule 'qtscxml' Configuring submodule 'qtsensors' Configuring submodule 'qtserialbus' Configuring submodule 'qtspeech' Configuring submodule 'qttranslations' CMake Warning at qttranslations/translations/CMakeLists.txt:37 (message): Directory 'C:/QtBuild/qt-everywhere-src-6.4.2/qttranslations/translations/../../qtlocation/src' for qtlocation does not exist. Skipping... Call Stack (most recent call first): qttranslations/translations/CMakeLists.txt:105 (add_ts_targets) CMake Warning at qttranslations/translations/CMakeLists.txt:44 (message): No source files located for qtlocation, skipping target creation Call Stack (most recent call first): qttranslations/translations/CMakeLists.txt:105 (add_ts_targets) Configuring submodule 'qtvirtualkeyboard' QtVirtualKeyboard: WARNING: C:/QtBuild/qt-everywhere-src-6.4.2/qtvirtualkeyboard/src/virtualkeyboard/qvirtualkeyboard_namespace.h does not include QT_BEGIN_NAMESPACE Configuring submodule 'qtwayland' Skipping the build as the condition "LINUX OR MACOS OR QNX" is not met. Configuring submodule 'qtwebchannel' CMake Warning (dev) at qtBuild/qtbase/lib/cmake/Qt6Qml/Qt6QmlBuildInternals.cmake:410 (message): INSTALL_SOURCE_QMLTYPES option is deprecated and should not be used. Please port your module to use declarative type registration. Call Stack (most recent call first): qtwebchannel/src/imports/webchannel/CMakeLists.txt:7 (qt_internal_add_qml_module) This warning is for project developers. Use -Wno-dev to suppress it.Configuring submodule 'qtwebengine' Configuring submodule 'qtwebview' -- Could NOT find Qt6WebEngineCore (missing: Qt6WebEngineCore_DIR) CMake Warning at qtBuild/qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (message): Failed to find optional Qt component "WebEngineCore". Expected Config file at "C:/QtBuild/qt-everywhere-src-6.4.2/qtBuild/qtbase/lib/cmake/Qt6WebEngineCore/Qt6WebEngineCoreConfig.cmake" does NOT existCall Stack (most recent call first): qtwebview/CMakeLists.txt:12 (find_package) -- Could NOT find Qt6WebEngineQuick (missing: Qt6WebEngineQuick_DIR) CMake Warning at qtBuild/qtbase/lib/cmake/Qt6/Qt6Config.cmake:214 (message): Failed to find optional Qt component "WebEngineQuick". Expected Config file at "C:/QtBuild/qt-everywhere-src-6.4.2/qtBuild/qtbase/lib/cmake/Qt6WebEngineQuick/Qt6WebEngineQuickConfig.cmake" does NOT existCall Stack (most recent call first): qtwebview/CMakeLists.txt:12 (find_package)-- Configuration summary shown below. It has also been written to C:/QtBuild/qt-everywhere-src-6.4.2/qtBuild/config.summary -- Configure with --log-level=STATUS or higher to increase CMake's message verbosity. The log level does not persist across reconfigurations.-- Configure summary:Building for: win32-msvc (x86_64, CPU features: sse sse2) Compiler: msvc 19.29.30147.0 Build options: Mode ................................... debug Fully optimize release builds (-O3) .... no Building shared libraries .............. yes Using C standard ....................... C11 Using C++ standard ..................... C++17 Relocatable ............................ yes Using precompiled headers .............. yes Using LTCG ............................. no Using Intel CET ........................ no Target compiler supports: SSE .................................. SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX .................................. AVX AVX2 VAES AVX512 ............................... F ER CD PF DQ BW VL IFMA VBMI AVX512VBMI2 Other x86 ............................ AES F16C RDRAND SHA Sanitizers: Addresses ............................ no Threads .............................. no Memory ............................... no Fuzzer (instrumentation only) ........ no Undefined ............................ no Build parts ............................ libs tools App store compliance ................... no Qt modules and options: Qt Concurrent .......................... yes Qt D-Bus ............................... yes Qt D-Bus directly linked to libdbus .... no Qt Gui ................................. yes Qt Network ............................. yes Qt PrintSupport ........................ yes Qt Sql ................................. yes Qt Testlib ............................. yes Qt Widgets ............................. yes Qt Xml ................................. yes Support enabled for: Using pkg-config ....................... no udev ................................... no Using system zlib ...................... no Zstandard support ...................... no Thread support ......................... yes Common build options: Linker can resolve circular dependencies yes Qt Core: backtrace .............................. no DoubleConversion ....................... yes Using system DoubleConversion ........ no GLib ................................... no ICU .................................... no Using system libb2 ..................... no Built-in copy of the MIME database ..... yes cpp/winrt base ......................... yes Tracing backend ........................ <none> Logging backends: journald ............................. no syslog ............................... no slog2 ................................ no PCRE2 .................................. yes Using system PCRE2 ................... no Qt Sql: SQL item models ........................ yes Qt Network: getifaddrs() ........................... no IPv6 ifname ............................ no libproxy ............................... no Schannel ............................... yes OpenSSL ................................ yes Qt directly linked to OpenSSL ........ no OpenSSL 1.1 ............................ yes DTLS ................................... yes OCSP-stapling .......................... yes SCTP ................................... no Use system proxies ..................... yes GSSAPI ................................. no Brotli Decompression Support ........... no qTopLevelDomain() ...................... yes Built-in publicsuffix database ....... yes System publicsuffix database ......... no Core tools: Android deployment tool ................ yes macOS deployment tool .................. no Windows deployment tool ................ yes qmake .................................. yes Qt Gui: Accessibility .......................... yes FreeType ............................... yes Using system FreeType ................ no HarfBuzz ............................... yes Using system HarfBuzz ................ no Fontconfig ............................. no Image formats: GIF .................................. yes ICO .................................. yes JPEG ................................. yes Using system libjpeg ............... no PNG .................................. yes Using system libpng ................ no Text formats: HtmlParser ........................... yes CssParser ............................ yes OdfWriter ............................ yes MarkdownReader ....................... yes Using system libmd4c ............... no MarkdownWriter ....................... yes EGL .................................... no OpenVG ................................. no OpenGL: Desktop OpenGL ....................... no Dynamic OpenGL ....................... yes OpenGL ES 2.0 ........................ no OpenGL ES 3.0 ........................ no OpenGL ES 3.1 ........................ no OpenGL ES 3.2 ........................ no Vulkan ................................. no Session Management ..................... yes Features used by QPA backends: evdev .................................. no libinput ............................... no HiRes wheel support in libinput ........ no INTEGRITY HID .......................... no mtdev .................................. no tslib .................................. no xkbcommon .............................. no X11 specific: XLib ................................. no XCB Xlib ............................. no EGL on X11 ........................... no xkbcommon-x11 ........................ no xcb-sm ............................... no QPA backends: DirectFB ............................... no EGLFS .................................. no EGLFS details: EGLFS OpenWFD ........................ no EGLFS i.Mx6 .......................... no EGLFS i.Mx6 Wayland .................. no EGLFS RCAR ........................... no EGLFS EGLDevice ...................... no EGLFS GBM ............................ no EGLFS VSP2 ........................... no EGLFS Mali ........................... no EGLFS Raspberry Pi ................... no EGLFS X11 ............................ no LinuxFB ................................ no VNC .................................... no VK_KHR_display ......................... no QNX: lgmon ................................ no IMF .................................. no XCB: Using system-provided xcb-xinput ..... no GL integrations: GLX Plugin ......................... no XCB GLX .......................... no EGL-X11 Plugin ..................... no Windows: Direct 2D ............................ yes Direct 2D 1.1 ........................ yes DirectWrite .......................... yes DirectWrite 3 ........................ yes Qt Widgets: GTK+ ................................... no Styles ................................. Fusion Windows WindowsVista Qt Testlib: Tester for item models ................. yes Qt PrintSupport: CUPS ................................... no Qt Sql Drivers: DB2 (IBM) .............................. no InterBase .............................. no MySql .................................. yes OCI (Oracle) ........................... no ODBC ................................... yes PostgreSQL ............................. no SQLite ................................. yes Using system provided SQLite ......... no Further Image Formats: JasPer ................................. no MNG .................................... no TIFF ................................... yes Using system libtiff ................. no WEBP ................................... yes Using system libwebp ................. no Qt QML: QML network support .................... yes QML debugging and profiling support .... yes QML just-in-time compiler .............. yes QML XML http request ................... yes QML Locale ............................. yes Qt QML Models: QML list model ......................... yes QML delegate model ..................... yes Qt Quick: AnimatedImage item ..................... yes Canvas item ............................ yes Support for Qt Quick Designer .......... yes Flipable item .......................... yes GridView item .......................... yes ListView item .......................... yes TableView item ......................... yes TreeView item .......................... yes Path support ........................... yes PathView item .......................... yes Positioner items ....................... yes Repeater item .......................... yes ShaderEffect item ...................... yes Sprite item ............................ yes Qt Quick Templates 2: Hover support .......................... yes Multi-touch support .................... yes Calendar support ....................... yes Qt Quick Controls 2: Styles ................................. Basic Fusion Imagine iOS Material Universal macOS Windows QtQuick3D: Assimp ................................. yes System Assimp .......................... no Qt Multimedia: Spatial Audio .......................... yes Spatial Audio (Quick3D) ................ yes Low level Audio Backend: ALSA (experimental) .................. no PulseAudio ........................... no MMRenderer ........................... no CoreAudio ............................ no Windows Media SDK .................... yes Open SLES (Android) .................. no Web Assembly ......................... no Plugin: GStreamer 1.0 ........................ no FFmpeg ............................... no MMRenderer ........................... no AVFoundation ......................... no Windows Media Foundation ............. yes Hardware acceleration and features: Video for Linux ...................... no VAAPI support ........................ no Linux DMA buffer support ............. no VideoToolbox ......................... no Qt 3D: Assimp ................................. yes System Assimp .......................... no Use SSE2 instructions .................. yes Use AVX2 instructions .................. no Aspects: Render aspect ........................ yes Input aspect ......................... yes Logic aspect ......................... yes Animation aspect ..................... yes Extras aspect ........................ yes Qt 3D APIs: Vulkan ................................. no Qt 3D Renderers: OpenGL Renderer ........................ yes RHI Renderer ........................... yes Qt3D Geometry Loaders: Autodesk FBX ........................... no Qt 5 Compatibility Libraries: iconv .................................. no Qt Charts Types: Area Chart ............................. yes Line Chart ............................. yes Spline Chart ........................... yes Scatter Chart .......................... yes Bar Chart .............................. yes Pie Chart .............................. yes Boxplot Chart .......................... yes Candlestick Chart ...................... yes Qt Axis Types: DateTime Axis .......................... yes Qt Bluetooth: BlueZ .................................. no BlueZ Low Energy ....................... no Linux Crypto API ....................... no WinRT Bluetooth API .................... yes Qt Tools: Qt Assistant ........................... yes QDoc ................................... yes Clang-based lupdate parser ............. yes Qt Designer ............................ yes Qt Distance Field Generator ............ yes Qt Linguist ............................ yes pixeltool .............................. yes qdbus .................................. yes Qt Attributions Scanner ................ yes qtdiag ................................. yes qtplugininfo ........................... yes Qt Opcua: Open62541 .............................. yes Unified Automation C++ SDK ............. no Support for namespace 0 NodeId names ... yes Namespace 0 NodeIds generator .......... no Open62541 security support ............. yes Support for global discovery server .... yes Serial Port: ntddmodm ............................... no Qt Remote Objects: High Availability Manager (ham) ........ no Qt Scxml: ECMAScript data model for QtScxml ...... yes Qt Sensors: WinRT sensors backend .................. yes Qt SerialBus: Socket CAN ............................. no Socket CAN FD .......................... no SerialPort Support ..................... yes Qt TextToSpeech: Flite .................................. no Flite with ALSA ........................ no Speech Dispatcher ...................... no Qt Virtualkeyboard: Desktop integration .................... yes Built-in layouts ....................... yes Key navigation ......................... no Retro style as default ................. no Sensitive Debug ........................ no Cerence ................................ no Static Linking ....................... no Handwriting .......................... no Alphabetic ......................... no CJK ................................ no XT9 .................................. no XT9 Debug .......................... no XT9 9-key layouts .................. no Bundle resources ..................... no Handwriting ........................ no XT9 ................................ no Hunspell ............................... no Using Hunspell copy from 3rdparty/ ... no OpenWnn ................................ yes MyScript ............................... no Language support enabled for: Arabic ............................... yes Bulgarian ............................ yes Czech ................................ yes Danish ............................... yes German ............................... yes Greek ................................ yes English GB ........................... yes English US ........................... yes Spanish .............................. yes Spanish Mexico ....................... yes Estonian ............................. yes Farsi ................................ yes Finnish .............................. yes French Canada ........................ yes French France ........................ yes Hebrew ............................... yes Hindi ................................ yes Croatian ............................. yes Hungarian ............................ yes Indonesian ........................... yes Italian .............................. yes Japanese ............................. yes Korean ............................... yes Malay ................................ yes Norwegian ............................ yes Dutch ................................ yes Polish ............................... yes Portuguese Brazil .................... yes Portuguese Portugal .................. yes Romanian ............................. yes Russian .............................. yes Slovak ............................... yes Slovenian ............................ yes Albanian ............................. yes Serbian .............................. yes Swedish .............................. yes Thai ................................. yes Turkish .............................. yes Ukrainian ............................ yes Vietnamese ........................... yes Simplified Chinese ................... yes Traditional Chinese .................. yes HongKong Chinese ..................... no Traditional chinese input methods: Zhuyin ............................... yes Cangjie .............................. yes Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available.--Qt is now configured for building. Just run 'cmake --build . --parallel'Once everything is built, you must run 'cmake --install .' Qt will be installed into 'C:/Qt/6.4.2/msvc2019_64'To configure and build other Qt modules, you can use the following convenience script: C:/Qt/6.4.2/msvc2019_64/bin/qt-configure-module.batIf reconfiguration fails for some reason, try removing 'CMakeCache.txt' from the build directory-- Configuring done -- Generating done -- Build files have been written to: C:/QtBuild/qt-everywhere-src-6.4.2/qtBuildC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild>cmake --build . [4202/10463] Generating rep_grammar.cpp, rep_grammar_p.h, repparser.h, repparser.cpp *** Conflicts: 24 shift/reduce, 28 reduce/reduce [5208/10463] Building CXX object qt3d\src\plugins\renderer...iles\RhiRendererPlugin.dir\renderer\pipelineuboset.cpp.obj C:\QtBuild\qt-everywhere-src-6.4.2\qt3d\src\plugins\renderers\rhi\renderer\pipelineuboset.cpp(600): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data [5512/10463] Building CXX object qtopcua\src\plugins\opcua...2541Plugin.dir\__\__\__\3rdparty\open62541\open62541.c.obj cl : Command line warning D9025 : overriding '/Zc:strictStrings' with '/Zc:strictStrings-' cl : Command line warning D9025 : overriding '/permissive-' with '/permissive' cl : Command line warning D9014 : invalid value '2362' for '/wd'; assuming '5999' [6783/10463] Building CXX object qttools\src\linguist\lupdate\CMakeFiles\lupdate.dir\main.cpp.obj FAILED: qttools/src/linguist/lupdate/CMakeFiles/lupdate.dir/main.cpp.obj C:\PROGRA~2\MICROS~3\2019\ENTERP~1\VC\Tools\MSVC\1429~1.301\bin\Hostx64\x64\cl.exe /nologo /TP -DLUPDATE_CLANG_VERSION_MAJOR=15 -DLUPDATE_CLANG_VERSION_MINOR=0 -DLUPDATE_CLANG_VERSION_PATCH=6 -DLUPDATE_CLANG_VERSION_STR=\"\"15.0.6\"\" -DQT_CORE_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII -DQT_NO_EXCEPTIONS -DQT_NO_JAVA_STYLE_ITERATORS -DQT_NO_NARROWING_CONVERSIONS_IN_CONNECT -DQT_QMLINTEGRATION_LIB -DQT_QML_LIB -DQT_TOOLS_LIB -DQT_USE_QSTRINGBUILDER -DUNICODE -DWIN32 -DWIN64 -D_CRT_SECURE_NO_WARNINGS -D_ENABLE_EXTENDED_ALIGNED_STORAGE -D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING -D_UNICODE -D_WIN64 -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qttools\src\linguist\lupdate\lupdate_autogen\include -IC:\QtBuild\qt-everywhere-src-6.4.2\qttools\src\linguist\lupdate -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qttools\src\linguist\lupdate -IC:\QtBuild\qt-everywhere-src-6.4.2\qttools\src\linguist\lupdate\..\shared -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtCore -IC:\QtBuild\qt-everywhere-src-6.4.2\qtbase\mkspecs\win32-msvc -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\src\corelib -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtCore\6.4.2 -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtCore\6.4.2\QtCore -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtTools -IC:\QtBuild\qt-everywhere-src-6.4.2\qttools\src\global -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qttools\src\global -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtTools\6.4.2 -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtTools\6.4.2\QtTools -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtdeclarative\src\qml -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtQml\6.4.2 -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtQml\6.4.2\QtQml -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtQml -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtQmlIntegration -IC:\QtBuild\qt-everywhere-src-6.4.2\qtdeclarative\src\qmlintegration -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtdeclarative\src\qmlintegration -IC:\QtBuild\qt-everywhere-src-6.4.2\qtBuild\qtbase\include\QtNetwork -external:IC:\Clang\msvc2019\x64\debug\include -external:W0 /DWIN32 /D_WINDOWS /Zi /RTC1 -MDd /W3 /EHs-c- /wd4530 /wd4577 -Zc:__cplusplus -permissive- -utf-8 -FS -Zc:rvalueCast -Zc:inline -Zc:strictStrings -Zc:throwingNew -Zc:referenceBinding -Zc:externConstexpr -Zc:wchar_t -bigobj -std:c++17 /showIncludes /Foqttools\src\linguist\lupdate\CMakeFiles\lupdate.dir\main.cpp.obj /Fdqttools\src\linguist\lupdate\CMakeFiles\lupdate.dir\ /FS -c C:\QtBuild\qt-everywhere-src-6.4.2\qttools\src\linguist\lupdate\main.cpp C:\QtBuild\qt-everywhere-src-6.4.2\qttools\src\linguist\lupdate\cpp_clang.h(21): fatal error C1083: Cannot open include file: 'llvm/ADT/StringRef.h': No such file or directory [6816/10463] Automatic MOC for target Quick ninja: build stopped: subcommand failed.C:\QtBuild\qt-everywhere-src-6.4.2\qtBuild>
Issue: C:\QtBuild\qt-everywhere-src-6.4.2\qttools\src\linguist\lupdate\cpp_clang.h(21): fatal error C1083: Cannot open include file: 'llvm/ADT/StringRef.h': No such file or directory
I have attached the screenshot which displays that StringRef.h exists on my system. I have tried to change from #include <llvm/ADT/StringRef.h> to #include <include/llvm/ADT/StringRef.h> but it still fails with the same error.
I use LLVM/Clang: 15.0.6. Also, I have added cmake.trace. Any ideas how to fix it? Thank you.