I did follow the instructions to set up my environment correctly.
And here's the output of the configuration script:
+ H:\Qt\6.8.1\Src/qtbase/configure.bat -top-level -qt-libpng -qt-libjpeg -cmake-generator Ninja -openssl-linked -platform win32-clang-msvc -- -DOPENSSL_ROOT_DIR=H:/Qt/Tools/OpenSSLv3/Win_x64 -DLLVM_INSTALL_DIR=D:/LLVM-Clang MSVC/clang+llvm-18.1.8-x86_64-pc-windows-msvc/ -Wno-dev
-- Windows 10 SDK version:
Overriding option 'libpng' with 'qt' (was: 'undefined')
Overriding option 'libjpeg' with 'qt' (was: 'undefined')
'C:/Program Files/CMake/bin/cmake.exe' '-DOPENSSL_ROOT_DIR=H:/Qt/Tools/OpenSSLv3/Win_x64' '-DLLVM_INSTALL_DIR=D:/LLVM-Clang MSVC/clang+llvm-18.1.8-x86_64-pc-windows-msvc/' '-Wno-dev' '-DQT_INTERNAL_CALLED_FROM_CONFIGURE:BOOL=TRUE' '-DQT_QMAKE_TARGET_MKSPEC=win32-clang-msvc' '-DCMAKE_C_COMPILER=clang-cl' '-DCMAKE_CXX_COMPILER=clang-cl' '-DINPUT_libpng=qt' '-DINPUT_libjpeg=qt' '-DINPUT_openssl=linked' '-G' 'Ninja' 'H:/Qt/6.8.1/Src'
-- 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 'qtgraphs'
-- Checking dependencies of submodule 'qtwebsockets'
-- Checking dependencies of submodule 'qthttpserver'
-- Checking dependencies of submodule 'qtserialport'
-- Checking dependencies of submodule 'qtpositioning'
-- Checking dependencies of submodule 'qtlocation'
-- Checking dependencies of submodule 'qttools'
-- Checking dependencies of submodule 'qtwebchannel'
-- Checking dependencies of submodule 'qtwebengine'
-- Checking dependencies of submodule 'qtdoc'
-- Checking dependencies of submodule 'qtgrpc'
-- Checking dependencies of submodule 'qtlottie'
-- Checking dependencies of submodule 'qtmqtt'
-- Checking dependencies of submodule 'qtnetworkauth'
-- Checking dependencies of submodule 'qtopcua'
-- Checking dependencies of submodule 'qtquick3dphysics'
-- Checking dependencies of submodule 'qtquickeffectmaker'
-- 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 'qtwebview'
-- Configuring submodule 'qtbase'
-- [QtBase] CMAKE_BUILD_TYPE was already explicitly set to: 'Release'
[QtBase] 'qtwebengine_build' was changed from OFF to ON
[QtBase] 'qtwebengine_core_build' was changed from OFF to ON
[QtBase] 'qtwebengine_widgets_build' was changed from OFF to ON
[QtBase] 'qtwebengine_quick_build' was changed from OFF to ON
CMake Warning at qtbase/cmake/QtFeature.cmake:896 (message):
Due to detected feature set changes, dependent features will be re-computed
automatically. This might cause a lot of files to be rebuilt. To disable
this behavior, configure with -DQT_NO_FEATURE_AUTO_RESET=ON
Call Stack (most recent call first):
qtbase/cmake/QtBuildHelpers.cmake:472 (qt_internal_detect_dirty_features)
qtbase/cmake/QtBuild.cmake:4 (qt_internal_setup_build_and_global_variables)
qtbase/cmake/QtSetup.cmake:6 (include)
qtbase/cmake/QtBuildRepoHelpers.cmake:21 (include)
qtbase/cmake/QtBuildRepoHelpers.cmake:232 (qt_build_internals_set_up_private_api)
qtbase/cmake/QtBaseHelpers.cmake:154 (qt_build_repo_begin)
qtbase/CMakeLists.txt:32 (qt_internal_qtbase_build_repo)
-- 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'
-- Configuring submodule 'qt5compat'
-- Configuring submodule 'qtactiveqt'
-- Configuring submodule 'qtcharts'
-- Configuring submodule 'qtcoap'
-- Configuring submodule 'qtconnectivity'
-- Configuring submodule 'qtdatavis3d'
-- Configuring submodule 'qtgraphs'
-- Configuring submodule 'qtwebsockets'
-- Configuring submodule 'qthttpserver'
-- Configuring submodule 'qtserialport'
-- Configuring submodule 'qtpositioning'
-- Configuring submodule 'qtlocation'
-- Configuring submodule 'qttools'
-- Configuring submodule 'qtwebchannel'
-- Configuring submodule 'qtwebengine'
[QtWebEngine] -- Windows 10 SDK version:
[QtWebEngine] -- Support check for QtWebEngine failed: Build requires Windows 11 SDK at least version 10.0.22621.0
CMake Error at qtwebengine/cmake/Functions.cmake:967 (get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
qtwebengine/src/pdf/CMakeLists.txt:112 (append_compiler_linker_sdk_setup)
-- Configuring incomplete, errors occurred!
CMake Error at H:/Qt/6.8.1/Src/qtbase/cmake/QtProcessConfigureArgs.cmake:1139 (message):
CMake exited with code 1.
CMake Error at H:/Qt/6.8.1/Src/cmake/QtIRProcessHelpers.cmake:173 (message):
H:\Qt\6.8.1\Src/qtbase/configure.bat -top-level -qt-libpng -qt-libjpeg
-cmake-generator Ninja -openssl-linked -platform win32-clang-msvc --
-DOPENSSL_ROOT_DIR=H:/Qt/Tools/OpenSSLv3/Win_x64
-DLLVM_INSTALL_DIR=D:/LLVM-Clang
MSVC/clang+llvm-18.1.8-x86_64-pc-windows-msvc/ -Wno-dev exited with status:
1
Call Stack (most recent call first):
H:/Qt/6.8.1/Src/cmake/QtTopLevelHelpers.cmake:35 (qt_ir_execute_process_and_log_and_handle_error)
H:/Qt/6.8.1/Src/cmake/QtTopLevelHelpers.cmake:57 (qt_tl_run_toplevel_configure)
H:/Qt/6.8.1/Src/cmake/QtTopLevelConfigureScript.cmake:17 (qt_tl_run_main_script)