Skip to content

[webrtc] build failure when Windows SDK 10.0.26100.0 is not installed #52527

Description

@msenghouse

Operating system

Windows 10

Compiler

MSVC

Steps to reproduce the behavior

Install just the Windows 11 SDK 10.0.28000.0 (not 10.0.26100.0, which is the default for building webrtc/chromium)

Building webrtc will say it cannot find the 10.0.26100.0 SDK

Failure logs

Console:
1> Installing 175/175 webrtc:sofo-x64-windows-static-md@2026-03-17...
1> webrtc:sofo-x64-windows-static-md@2026-03-17 package ABI: ece37d58810ea3dee344699506adc5cf70e4adeef33002691d4a0cb9f68a1fa4
1> Building webrtc:sofo-x64-windows-static-md@2026-03-17...
1> C:\Streams\IP-MS-AVEngine\libAVEngine\3rdParty\vcpkg-triplets\sofo-x64-windows-static-md.cmake: info: loaded overlay triplet from here
1> C:\Users\mark.samuelson\AppData\Local\vcpkg\registries\git-trees\cef33e288ddedf719feb03fc55040774d6edea39: info: installing from git registry git+https://github.com/Microsoft/vcpkg@cef33e288ddedf719feb03fc55040774d6edea39
1> -- Using cached C:/vcpkg/vcpkg/downloads/webrtc-aa217206b9ce8b929dc56d112d670a5931ef8cc1.tar.gz
1> -- Cleaning sources at C:/vcpkg/vcpkg/buildtrees/webrtc/src/5931ef8cc1-b91d848dd7.clean. Use --editable to skip cleaning for the packages you specify.
1> -- Extracting source C:/vcpkg/vcpkg/downloads/webrtc-aa217206b9ce8b929dc56d112d670a5931ef8cc1.tar.gz
1> -- Applying patch webrtc-0001-disable-perfetto-when-off.patch
1> -- Applying patch webrtc-0002-export-enable-media-with-defaults.patch
1> -- Applying patch webrtc-0005-use-external-openssl.patch
1> -- Applying patch webrtc-0006-make-dav1d-decoder-deps-conditional.patch
1> -- Applying patch webrtc-0007-fix-rtp-packet-info-eq-for-msvc.patch
1> -- Applying patch webrtc-0008-fix-audio-device-core-win-goto-scope.patch
1> -- Applying patch webrtc-0009-fix-avx2-intrinsics-for-msvc.patch
1> -- Applying patch webrtc-0010-fix-denormal-disabler-for-msvc.patch
1> -- Applying patch webrtc-0011-make-linux-audio-backends-optional.patch
1> -- Using source at C:/vcpkg/vcpkg/buildtrees/webrtc/src/5931ef8cc1-b91d848dd7.clean
1> -- Using cached C:/vcpkg/vcpkg/downloads/webrtc-f123ee3617656ae843bd7f68f173c651fe2ec4bf.tar.gz
1> -- Extracting source C:/vcpkg/vcpkg/downloads/webrtc-f123ee3617656ae843bd7f68f173c651fe2ec4bf.tar.gz
1> -- Applying patch build-0001-drop-module-deps-from-toolchain-invocations.patch
1> -- Applying patch build-0002-fix-apple-arflags-usage.patch
1> -- Applying patch build-0004-disable-sanitize-c-array-bounds.patch
1> -- Applying patch build-0005-disable-sanitize-return.patch
1> -- Applying patch build-0006-skip-local-vs-debugger-copy.patch
1> -- Applying patch build-0007-fix-windows-pdb-commands.patch
1> -- Applying patch build-0008-disable-crel-on-linux-arm64.patch
1> -- Using source at C:/vcpkg/vcpkg/buildtrees/webrtc/src/51fe2ec4bf-eeb740d65e.clean
1> -- Using cached C:/vcpkg/vcpkg/downloads/webrtc-95ed44cf5f06dbb5861030b91c9db9ccb4316762.tar.gz
1> -- Extracting source C:/vcpkg/vcpkg/downloads/webrtc-95ed44cf5f06dbb5861030b91c9db9ccb4316762.tar.gz
1> -- Using source at C:/vcpkg/vcpkg/buildtrees/webrtc/src/ccb4316762-f5321f7449.clean
1> -- Using cached webrtc-chromium-third_party-rnnoise-BUILD.gn.b64
1> -- Using cached webrtc-chromium-third_party-rnnoise-COPYING.b64
1> -- Using cached webrtc-chromium-third_party-rnnoise-DIR_METADATA.b64
1> -- Using cached webrtc-chromium-third_party-rnnoise-OWNERS.b64
1> -- Using cached webrtc-chromium-third_party-rnnoise-README.chromium.b64
1> -- Using cached webrtc-chromium-third_party-rnnoise-src-rnn_activations.h.b64
1> -- Using cached webrtc-chromium-third_party-rnnoise-src-rnn_vad_weights.cc.b64
1> -- Using cached webrtc-chromium-third_party-rnnoise-src-rnn_vad_weights.h.b64
1> -- Getting CMake variables for sofo-x64-windows-static-md
1> -- Loading CMake variables from C:/vcpkg/vcpkg/buildtrees/webrtc/cmake-get-vars_C_CXX-sofo-x64-windows-static-md.cmake.log
1> CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
1> Command failed: C:/vcpkg/vcpkg_installed_Recorder/x64-windows/tools/gn/gn.exe gen C:/vcpkg/vcpkg/buildtrees/webrtc/sofo-x64-windows-static-md-dbg "--args=clang_use_chrome_plugins=false init_stack_vars=false use_sysroot=false use_custom_libcxx=false use_custom_libcxx_for_host=false use_clang_modules=false use_siso=false use_remoteexec=false is_debug=true is_component_build=false symbol_level=2 treat_warnings_as_errors=false rtc_build_examples=false rtc_build_tools=false rtc_include_tests=false rtc_enable_protobuf=false rtc_build_ssl=false rtc_ssl_root="C:/vcpkg/vcpkg_installed_Recorder/sofo-x64-windows-static-md/include" rtc_ssl_lib_path="C:/vcpkg/vcpkg_installed_Recorder/sofo-x64-windows-static-md/debug/lib" libsrtp_build_boringssl=false libsrtp_ssl_root="C:/vcpkg/vcpkg_installed_Recorder/sofo-x64-windows-static-md/include" use_system_libjpeg=true use_libjpeg_turbo=false rtc_build_libvpx=true rtc_build_opus=true rtc_include_dav1d_in_internal_decoder_factory=false rtc_use_pipewire=false rtc_use_x11=false use_glib=false enable_rust=false enable_rust_cxx=false rtc_use_h264=false target_os="win" target_cpu="x64" is_clang=false use_lld=false extra_cflags_c=" -nologo -DWIN32 -D_WINDOWS -utf-8 -MP -MDd -Z7 -Ob0 -Od -RTC1 " extra_cflags_cc=" -nologo -DWIN32 -D_WINDOWS -utf-8 -GR -EHsc -MP -MDd -Z7 -Ob0 -Od -RTC1 " extra_ldflags=" -machine:x64 -nologo -debug -INCREMENTAL " extra_arflags="-machine:x64 -nologo" enable_iterator_debugging=true"
1> Working Directory: C:/vcpkg/vcpkg/buildtrees/webrtc/src/5931ef8cc1-b91d848dd7.clean
1> 1>EXEC : error code: 1
1> See logs for more information:
1> C:\vcpkg\vcpkg\buildtrees\webrtc\generate-sofo-x64-windows-static-md-debug-out.log
1> C:\vcpkg\vcpkg\buildtrees\webrtc\generate-sofo-x64-windows-static-md-debug-err.log
1>
1> Call Stack (most recent call first):
1> C:/Users/mark.samuelson/AppData/Local/vcpkg/registries/git-trees/cef33e288ddedf719feb03fc55040774d6edea39/portfile.cmake:509 (vcpkg_execute_required_process)
1> scripts/ports.cmake:206 (include)
1>
1>
1> 1>EXEC : error : building webrtc:sofo-x64-windows-static-md failed with: BUILD_FAILED
1> See https://learn.microsoft.com/vcpkg/troubleshoot/build-failures?WT.mc_id=vcpkg_inproduct_cli for more information.
1> Elapsed time to handle webrtc:sofo-x64-windows-static-md: 29 s
1> Please ensure you're using the latest port files with git pull and vcpkg update.
1> Then check for known issues at:
1> https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+webrtc
1> You can submit a new issue at:
1> https://github.com/microsoft/vcpkg/issues/new?title=%5Bwebrtc%5D%20build%20error%20on%20sofo-x64-windows-static-md&body=Copy%20issue%20body%20from%20C%3A%2Fvcpkg%2Fvcpkg_installed_Recorder%2Fvcpkg%2Fissue_body.md
1>
1> Completed submission of abseil:sofo-x64-windows-static-md@20260107.1#2 to 1 binary cache(s) in 3.9 s

Additional context

In the webrtc portfile.cmake, line 219, we attempt to update the windows sdk used to build in build/toolchain/win/setup_toolchain.py:

The sdk is also hardcoded in build/vs_toolchain.py, and so we need to update it there too by adding:

vcpkg_replace_string(
"${SOURCE_PATH}/build/vs_toolchain.py"
"SDK_VERSION = '10.0.26100.0'"
"SDK_VERSION = '${WEBRTC_WINDOWS_SDK_VERSION}'"
IGNORE_UNCHANGED # if non release only, the second replacement is a no-op
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-bugThe issue is with a library, which is something the port should already support

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions