Error while builing Qt 6 for Windows 11
Solved
Qt 6
-
My steps:
- git clone git://code.qt.io/qt/qt5.git qt6
- Perl --init-repository
- configure -developer-build -opensource
Environment: Windows 11, Visual Studio 2022 x64 command line prompt.
And after that configure failing. What i'm doing wrong?
d:\dev\qt6>configure -developer-build -opensource + cd qtbase + d:\dev\qt6\qtbase\configure.bat -top-level -developer-build -opensource -- Windows 10 SDK version: 10.0.22621.0 'C:/Program Files/CMake/bin/cmake.exe' '-DINPUT_developer_build=yes' '-G' 'Ninja' 'D:/dev/qt6' -- The CXX compiler identification is MSVC 19.32.31329.0 -- The C compiler identification is MSVC 19.32.31329.0 -- The ASM compiler identification is MSVC -- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.32.31326/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/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.32.31326/bin/Hostx64/x64/cl.exe - skipped -- Detecting C compile features -- Detecting C compile features - done ... -- Configuration summary shown below. It has also been written to D:/dev/qt6/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.32.31329.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 tests 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 .................................. no 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 Qt Multimedia: Spatial Audio .......................... yes Spatial Audio (Quick3D) ................ no 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 ................................. no Clang-based lupdate parser ........... no 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 QtQuick3D: Assimp ............................... yes System Assimp ........................ 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 WebEngine Repository Build Options: Build Ninja .......................... no Build Gn ............................. yes Jumbo Build .......................... yes Developer build ...................... yes Build QtWebEngine Modules: Build QtWebEngineCore .............. no Build QtWebEngineWidgets ........... no Build QtWebEngineQuick ............. no Build QtPdf Modules: Build QtPdfWidgets ................. no Build QtPdfQuick ................... no Note: Hunspell in Qt Virtual Keyboard is not enabled. Spelling correction will not be available. WARNING: QDoc will not be compiled, probably because libclang could not be located. This means that you cannot build the Qt documentation. Either set CMAKE_PREFIX_PATH or LLVM_INSTALL_DIR to the location of your llvm installation. On Linux systems, you may be able to install libclang by installing the libclang-dev or libclang-devel package, depending on your distribution. On macOS, you can use Homebrew's llvm package. You will also need to set the FEATURE_clang CMake variable to ON to re-evaluate this check. WARNING: Clang-based lupdate parser will not be available. LLVM and Clang C++ libraries have not been found. You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check. WARNING: QtWebEngine won't be built. Python3 html5lib is missing. WARNING: QtPdf won't be built. Python3 html5lib is missing. -- Qt is now configured for building. Just run 'cmake --build . --parallel' Once everything is built, Qt is installed. You should NOT run 'cmake --install .' Note that this build cannot be deployed to other machines or devices. To configure and build other Qt modules, you can use the following convenience script: D:/dev/qt6/qtbase/bin/qt-configure-module.bat If reconfiguration fails for some reason, try removing 'CMakeCache.txt' from the build directory -- Configuring done CMake Error: AUTOMOC for target qualified_names_test_moduleplugin: The "moc" executable "D:/dev/qt6/qtbase/bin/moc.exe" does not exist. CMake Generate step failed. Build files cannot be regenerated correctly. CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:965 (message): CMake exited with code 1.
-
@freedbrt said in Error while builing Qt 6 for Windows 11:
And after that configure failing. What i'm doing wrong?
Probably nothing, except living on the bleeding edge - latest dev branch ;)
This is an autotest in qtdeclarative not having it's dependencies right, in a top-level build.
If you actually are not interested in auto-tests, I suggest to just skip them by passing '-nomake tests'.
If you are actually interested in the Qt auto-tests, my suggestion is to not use a top-level build, but instead configure / build / install qtbase, then qtdeclarative ...