I was able to successfully build QT6.4 for Windows with skipped qttranslation
and qttools
modules. But if I do not skip them and configure QT as follows:
"C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64 set "CMAKE_ROOT=C:\dev\PFiles\cmake-3.24.0-rc4-windows-x86_64\bin" set "NINJA_ROOT=C:\dev\PFiles\ninja-win" set "PERL_ROOT=C:\dev\PFiles\Strawberry\perl\bin" set PATH=%CMAKE_ROOT%;%PATH% set PATH=%NINJA_ROOT%;%PATH% set PATH=%PERL_ROOT%;%PATH% set PATH=C:\dev\PFiles\Python35;%PATH% rem Check if the tools are in PATH where perl.exe where python.exe where cmake.exe where ninja.exe set MY_QT_SRC_DIR=C:\dev\repos\qt-everywhere-src-6.4.0 set "MY_INSTALL_PATH=C:/dev/libs/Qt6.4/windows" set CL=/MP %MY_QT_SRC_DIR%\configure.bat -prefix %MY_INSTALL_PATH% -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -platform win32-msvc -opensource -confirm-license ^ -c++std c++20 -static -static-runtime -I "C:/Program Files/OpenSSL/include" -L "C:/Program Files/OpenSSL/lib" -openssl-linked ^ -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity ^ -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua ^ -skip qtserialport -skip qtpositioning -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects ^ -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwayland ^ -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech |
I get the following configuration errors:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 | + cd qtbase + C:\dev\temp\qt-everywhere-src-6.4.0\qtbase\configure.bat -top-level -prefix C:/dev/libs/Qt6.4/windows -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -platform win32-msvc -opensource -confirm-license -c++std c++20 -static -static-runtime -I "C:/Program Files/OpenSSL/include" -L "C:/Program Files/OpenSSL/lib" -openssl-linked -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua -skip qtserialport -skip qtpositioning -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwayland -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech -- Windows 10 SDK version: 10.0.19041.0 'C:/dev/PFiles/cmake-3.24.0-rc4-windows-x86_64/bin/cmake.exe' '-DBUILD_qt3d=OFF' '-DBUILD_qt5compat=OFF' '-DBUILD_qtactiveqt=OFF' '-DBUILD_qtcharts=OFF' '-DBUILD_qtcoap=OFF' '-DBUILD_qtconnectivity=OFF' '-DBUILD_qtdatavis3d=OFF' '-DBUILD_qtdoc=OFF' '-DBUILD_qtlottie=OFF' '-DBUILD_qtmqtt=OFF' '-DBUILD_qtnetworkauth=OFF' '-DBUILD_qtopcua=OFF' '-DBUILD_qtserialport=OFF' '-DBUILD_qtpositioning=OFF' '-DBUILD_qtquicktimeline=OFF' '-DBUILD_qtquick3d=OFF' '-DBUILD_qtremoteobjects=OFF' '-DBUILD_qtscxml=OFF' '-DBUILD_qtsensors=OFF' '-DBUILD_qtserialbus=OFF' '-DBUILD_qtvirtualkeyboard=OFF' '-DBUILD_qtwayland=OFF' '-DBUILD_qtwebchannel=OFF' '-DBUILD_qtwebengine=OFF' '-DBUILD_qtwebview=OFF' '-DBUILD_qtquick3dphysics=OFF' '-DBUILD_qtspeech=OFF' '-DBUILD_SHARED_LIBS=OFF' '-DCMAKE_INSTALL_PREFIX=C:/dev/libs/Qt6.4/windows' '-DQT_QMAKE_TARGET_MKSPEC=win32-msvc' '-DCMAKE_C_COMPILER=cl' '-DCMAKE_CXX_COMPILER=cl' '-DCMAKE_CONFIGURATION_TYPES=RelWithDebInfo;Debug' '-DQT_EXTRA_DEFINES=QT_NO_EXCEPTIONS=1' '-DQT_EXTRA_INCLUDEPATHS=C:/Program Files/OpenSSL/include' '-DQT_EXTRA_LIBDIRS=C:/Program Files/OpenSSL/lib' '-DINPUT_cxx14=yes' '-DINPUT_cxx17=yes' '-DINPUT_cxx20=yes' '-DINPUT_static_runtime=yes' '-DINPUT_openssl=linked' '-G' 'Ninja Multi-Config' 'C:/dev/temp/qt-everywhere-src-6.4.0' -- The CXX compiler identification is MSVC 19.33.31630.0 -- The C compiler identification is MSVC 19.33.31630.0 -- The ASM compiler identification is MSVC -- Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Professional/VC/Tools/MSVC/14.33.31629/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.33.31629/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.33.31629/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 'qtmultimedia' Checking dependencies of submodule 'qttools' Skipping optional dependency 'qtactiveqt' of 'qttools', because building 'qtactiveqt' was explicitly disabled. Checking dependencies of submodule 'qtwebsockets' Checking dependencies of submodule 'qthttpserver' Checking dependencies of submodule 'qttranslations' Configuring submodule 'qtbase' -- Could NOT find md4c (missing: md4c_DIR) QtCore: WARNING: C:/dev/temp/qt-everywhere-src-6.4.0/qtbase/src/corelib/tools/qatomicscopedvaluerollback_p.h does not have the "We mean it." warning -- Could NOT find md4c (missing: md4c_DIR) Configuring submodule 'qtimageformats' Configuring submodule 'qtlanguageserver' Configuring submodule 'qtshadertools' Configuring submodule 'qtsvg' Configuring submodule 'qtdeclarative' QtQuickDialogs2QuickImpl: WARNING: C:/dev/temp/qt-everywhere-src-6.4.0/qtdeclarative/src/quickdialogs2/quickdialogs2quickimpl/qquickcolordialogutils_p.h does not have the "We mean it." warning shaders/SaturationLightness.frag -> shaders/SaturationLightness.frag.qsb exposed as :/qt-project.org/imports/QtQuick/Dialogs/quickimpl/shaders/SaturationLightness.frag.qsb QtQmlDom: WARNING: C:/dev/temp/qt-everywhere-src-6.4.0/qtdeclarative/src/qmldom/standalone/private/qtqmlcompilerexports_p.h does not have the "We mean it." warning Configuring submodule 'qtmultimedia' Configuring submodule 'qt3d' Configuring submodule 'qt5compat' Configuring submodule 'qtactiveqt' Configuring submodule 'qtcharts' Configuring submodule 'qtcoap' Configuring submodule 'qtconnectivity' Configuring submodule 'qtdatavis3d' Configuring submodule 'qttools' -- Could NOT find Clang (missing: Clang_DIR) -- Could NOT find Clang (missing: Clang_DIR) QtDesigner: WARNING: C:/dev/temp/qt-everywhere-src-6.4.0/qttools/src/designer/src/lib/uilib/formbuilder.h includes abstractformbuilder.h when it should include QtDesigner/abstractformbuilder.h Configuring submodule 'qtdoc' Configuring submodule 'qtwebsockets' CMake Warning (dev) at 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 'qtlottie' Configuring submodule 'qtmqtt' Configuring submodule 'qtnetworkauth' Configuring submodule 'qtopcua' Configuring submodule 'qtserialport' Configuring submodule 'qtpositioning' Configuring submodule 'qtquicktimeline' Configuring submodule 'qtquick3d' 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:/dev/temp/qt-everywhere-src-6.4.0/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' Configuring submodule 'qtwayland' Configuring submodule 'qtwebchannel' Configuring submodule 'qtwebengine' Configuring submodule 'qtwebview' -- Configuration summary shown below. It has also been written to C:/dev/temp/qt-everywhere-src-6.4.0/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.33.31630.0 Build options: Mode ................................... debug and release (with debug info) Optimize release build for size ........ no Fully optimize release builds (-O3) .... no Building shared libraries .............. no Using C standard ....................... C11 Using C++ standard ..................... C++20 Relocatable ............................ no 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 ......................... no 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 ........ yes 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 Note: Using static linking will disable the use of dynamically loaded plugins. Make sure to import all needed static plugins, or compile needed modules into the library. Note: When linking against OpenSSL, you can override the default library names through OPENSSL_LIBS. For example: OPENSSL_LIBS='-L/opt/ssl/lib -lssl -lcrypto' ./configure -openssl-linked WARNING: Basic cpp/winrt support missing. Some features might 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 Clan VideoToolbox ......................... no 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 is now configured for building. Just run 'cmake --build . --parallel' Once everything is built, you must run 'ninja install' Qt will be installed into 'C:/dev/libs/Qt6.4/windows' To configure and build other Qt modules, you can use the following convenience script: C:/dev/libs/Qt6.4/windows/bin/qt-configure-module.bat If reconfiguration fails for some reason, try removing 'CMakeCache.txt' from the build directory g C++ libraries have not been found. You will need to set the FEATURE_clangcpp CMake variable to ON to re-evaluate this check. -- Configuring done CMake Error in qttools/src/designer/src/lib/CMakeLists.txt: More than one .ui file with the name Dialog_with_Buttons_Bottom.ui was found in the sources for target Designer. CMake Error in qttools/src/designer/src/lib/CMakeLists.txt: More than one .ui file with the name Dialog_with_Buttons_Right.ui was found in the sources for target Designer. CMake Error in qttools/src/designer/src/lib/CMakeLists.txt: More than one .ui file with the name Dialog_with_Buttons_Bottom.ui was found in the sources for target Designer. CMake Error in qttools/src/designer/src/lib/CMakeLists.txt: More than one .ui file with the name Dialog_with_Buttons_Right.ui was found in the sources for target Designer. CMake Error in qttools/src/designer/src/lib/CMakeLists.txt: More than one .ui file with the name Dialog_with_Buttons_Bottom.ui was found in the sources for target Designer. CMake Error in qttools/src/designer/src/lib/CMakeLists.txt: More than one .ui file with the name Dialog_with_Buttons_Right.ui was found in the sources for target Designer. CMake Error in qttools/src/designer/src/lib/CMakeLists.txt: More than one .ui file with the name Dialog_with_Buttons_Bottom.ui was found in the sources for target Designer. CMake Error in qttools/src/designer/src/lib/CMakeLists.txt: More than one .ui file with the name Dialog_with_Buttons_Right.ui was found in the sources for target Designer. -- Generating done CMake Generate step failed. Build files cannot be regenerated correctly. CMake Error at qtbase/cmake/QtProcessConfigureArgs.cmake:965 (message): CMake exited with code 1. |
And build fails:
cmake --build . --parallel |
1 2 3 4 | ninja: error: build.ninja:6: loading 'CMakeFiles/impl-RelWithDebInfo.ninja': The system cannot find the file specified. include CMakeFiles/impl-RelWithDebInfo.ninja ^ near here |
There are multiple Dialog_with_Buttons_Bottom.ui
files in the build directory:

but it is not clear what does “More than one .ui file…” message mean.
I also tried out of source build:
cd C:\dev\build\qt "C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64 set "CMAKE_ROOT=C:\dev\PFiles\cmake-3.24.0-rc4-windows-x86_64\bin" set "NINJA_ROOT=C:\dev\PFiles\ninja-win" set "PERL_ROOT=C:\dev\PFiles\Strawberry\perl\bin" set PATH=%CMAKE_ROOT%;%PATH% set PATH=%NINJA_ROOT%;%PATH% set PATH=%PERL_ROOT%;%PATH% set PATH=C:\dev\PFiles\Python35;%PATH% rem Check if the tools are in PATH where perl.exe where python.exe where cmake.exe where ninja.exe set MY_INSTALL_PATH=C:/dev/libs/Qt6.4/windows set MY_QT_SRC_DIR=C:\dev\repos\qt-everywhere-src-6.4.0 set CL=/MP %MY_QT_SRC_DIR%\configure.bat -prefix %MY_INSTALL_PATH% -DQT_NO_EXCEPTIONS=1 -debug-and-release -force-debug-info -platform win32-msvc -opensource -confirm-license ^ -c++std c++20 -static -static-runtime -I "C:/Program Files/OpenSSL/include" -L "C:/Program Files/OpenSSL/lib" -openssl-linked ^ -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity ^ -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua ^ -skip qtserialport -skip qtpositioning -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects ^ -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwayland ^ -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech -skip qthttpserver |
but without a success.
I simplified the script:
%MY_QT_SRC_DIR%\configure.bat -prefix %MY_INSTALL_PATH% -platform win32-msvc -opensource -confirm-license ^ -skip qt3d -skip qt5compat -skip qtactiveqt -skip qtcharts -skip qtcoap -skip qtconnectivity ^ -skip qtdatavis3d -skip qtdoc -skip qtlottie -skip qtmqtt -skip qtnetworkauth -skip qtopcua ^ -skip qtserialport -skip qtpositioning -skip qtquicktimeline -skip qtquick3d -skip qtremoteobjects ^ -skip qtscxml -skip qtsensors -skip qtserialbus -skip qtvirtualkeyboard -skip qtwayland ^ -skip qtwebchannel -skip qtwebengine -skip qtwebview -skip qtquick3dphysics -skip qtspeech -skip qthttpserver |
%MY_QT_SRC_DIR%/configure.bat -prefix %MY_INSTALL_PATH% -platform win32-msvc -opensource -confirm-license |
but it also failed.
Versions of my build tools:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | C:\dev\build\qt>python.exe --version Python 3.5.4 C:\dev\build\qt>cmake.exe --version cmake version 3.24.0-rc4 CMake suite maintained and supported by Kitware (kitware.com/cmake). C:\dev\build\qt>ninja.exe --version 1.11.1 C:\dev\build\qt>perl.exe --version This is perl 5, version 28, subversion 0 (v5.28.0) built for MSWin32-x64-multi-thread |
Required versions:

The error happens in qt-everywhere-src-6.4.0\qttools\src\designer\src\lib\CMakeLists.txt
:
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | set(shared_resource_files "shared/defaultgradients.xml" "shared/icon-naming-spec.txt" "shared/templates/forms/240x320/Dialog_with_Buttons_Bottom.ui" "shared/templates/forms/240x320/Dialog_with_Buttons_Right.ui" "shared/templates/forms/320x240/Dialog_with_Buttons_Bottom.ui" "shared/templates/forms/320x240/Dialog_with_Buttons_Right.ui" "shared/templates/forms/480x640/Dialog_with_Buttons_Bottom.ui" "shared/templates/forms/480x640/Dialog_with_Buttons_Right.ui" "shared/templates/forms/640x480/Dialog_with_Buttons_Bottom.ui" "shared/templates/forms/640x480/Dialog_with_Buttons_Right.ui" "shared/templates/forms/Dialog_with_Buttons_Bottom.ui" "shared/templates/forms/Dialog_with_Buttons_Right.ui" "shared/templates/forms/Dialog_without_Buttons.ui" "shared/templates/forms/Main_Window.ui" "shared/templates/forms/Widget.ui" ) |
I commented this repeating dialog out:
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | set(shared_resource_files "shared/defaultgradients.xml" "shared/icon-naming-spec.txt" #"shared/templates/forms/240x320/Dialog_with_Buttons_Bottom.ui" #"shared/templates/forms/240x320/Dialog_with_Buttons_Right.ui" #"shared/templates/forms/320x240/Dialog_with_Buttons_Bottom.ui" #"shared/templates/forms/320x240/Dialog_with_Buttons_Right.ui" #"shared/templates/forms/480x640/Dialog_with_Buttons_Bottom.ui" #"shared/templates/forms/480x640/Dialog_with_Buttons_Right.ui" #"shared/templates/forms/640x480/Dialog_with_Buttons_Bottom.ui" #"shared/templates/forms/640x480/Dialog_with_Buttons_Right.ui" "shared/templates/forms/Dialog_with_Buttons_Bottom.ui" "shared/templates/forms/Dialog_with_Buttons_Right.ui" "shared/templates/forms/Dialog_without_Buttons.ui" "shared/templates/forms/Main_Window.ui" "shared/templates/forms/Widget.ui" ) |
and the error went away.
Updating CMake to cmake-3.24.2-windows-x86_64 also helps.
Can’t build qttranslations without qttools:
Module ‘qttranslations’ depends on ‘qttools’, but building ‘qttools’ was
explicitly disabled.
There are md4c.c md4c.h in qt-everywhere-src-6.4.0\qtbase\src\3rdparty\md4c
md4c sources: https://github.com/mity/md4c
Configuration options: https://doc.qt.io/qt-6/configure-options.html
Reported QT bug: https://bugreports.qt.io/browse/QTBUG-107546