From c97a2dade7f832fe83670815d25c006ad172734e Mon Sep 17 00:00:00 2001 From: Shao Su Date: Mon, 8 Jun 2026 16:36:48 -0700 Subject: [PATCH 1/5] Use the most recent hunter --- cmake/SetupHunter.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/SetupHunter.cmake b/cmake/SetupHunter.cmake index 0abf0a652..73a493ac1 100644 --- a/cmake/SetupHunter.cmake +++ b/cmake/SetupHunter.cmake @@ -105,8 +105,8 @@ if(BUILD_PLUGINS AND BUILD_PLUGIN_OAK_CAMERA) set(ENV{CMAKE_POLICY_VERSION_MINIMUM} "3.5") HunterGate( - URL "https://github.com/cpp-pm/hunter/archive/9d9242b60d5236269f894efd3ddd60a9ca83dd7f.tar.gz" - SHA1 "16cc954aa723bccd16ea45fc91a858d0c5246376" + URL "https://github.com/cpp-pm/hunter/archive/v0.26.9.tar.gz" + SHA1 "a962c9f0cfd6f8fc62ea25943d89debfa61d4d4a" LOCAL # Uses cmake/Hunter/config.cmake ) endif() From af8b8e0174d64c4cf21563ce2f9c3a271e5cabfe Mon Sep 17 00:00:00 2001 From: Shao Su Date: Mon, 8 Jun 2026 17:03:04 -0700 Subject: [PATCH 2/5] Pin mcsv-dev-cmd to VS 2022 --- .github/workflows/build-windows.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index ce6d5143c..e6963df8d 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -56,9 +56,17 @@ jobs: run: | sccache --version - # Put cl.exe and other build tools in PATH + # Put cl.exe and other build tools in PATH. + # Pin to VS 2022: windows-2025 also ships the VS 2026 toolset, which + # msvc-dev-cmd would otherwise auto-select. Although Hunter v0.26.9 now + # *recognizes* VS 2026 (MSVC_VERSION 195x), depthai pins 2020-era deps + # (e.g. spdlog 1.8.2 + fmt 7) that do not *compile* with the VS 2026 + # toolchain. VS 2022 is the newest compiler depthai's pinned deps build + # with. Drop this pin once depthai updates its Hunter config dep versions. - name: Setup MSVC (Developer Command Prompt) uses: ilammy/msvc-dev-cmd@v1 + with: + vsversion: "2022" # Install LunarG Vulkan SDK (headers + loader lib). Sets VULKAN_SDK # env var so CMake's FindVulkan locates the install. The Vulkan From 99053fc7504b97f0815b23b1cd90794831aeebf5 Mon Sep 17 00:00:00 2001 From: Shao Su Date: Mon, 8 Jun 2026 17:06:20 -0700 Subject: [PATCH 3/5] Pin window build image to 2022. --- .github/workflows/build-windows.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index e6963df8d..f246e3f2e 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -20,8 +20,8 @@ concurrency: jobs: build-windows: - # Pin to windows-2025 (VS 2022) until VS 2026 is validated. - runs-on: windows-2025 + # Pin to windows-2022 until VS 2026 is validated. + runs-on: windows-2022 env: SCCACHE_GHA_ENABLED: "true" @@ -65,8 +65,6 @@ jobs: # with. Drop this pin once depthai updates its Hunter config dep versions. - name: Setup MSVC (Developer Command Prompt) uses: ilammy/msvc-dev-cmd@v1 - with: - vsversion: "2022" # Install LunarG Vulkan SDK (headers + loader lib). Sets VULKAN_SDK # env var so CMake's FindVulkan locates the install. The Vulkan From cb1fdfb10df07484485b49ec1987e12414fbc40c Mon Sep 17 00:00:00 2001 From: Shao Su Date: Mon, 8 Jun 2026 17:21:32 -0700 Subject: [PATCH 4/5] Revert the window image change --- .github/workflows/build-windows.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index f246e3f2e..ebe78cf54 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -20,8 +20,8 @@ concurrency: jobs: build-windows: - # Pin to windows-2022 until VS 2026 is validated. - runs-on: windows-2022 + # Pin to windows-2025 (VS 2022) until VS 2026 is validated. + runs-on: windows-2025 env: SCCACHE_GHA_ENABLED: "true" From 21faf14b19e66035e4a2626f1b82ed0399e21ad0 Mon Sep 17 00:00:00 2001 From: Shao Su Date: Mon, 8 Jun 2026 18:08:11 -0700 Subject: [PATCH 5/5] Pin window image --- .github/workflows/build-windows.yml | 10 ++-------- cmake/SetupHunter.cmake | 4 ++-- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-windows.yml b/.github/workflows/build-windows.yml index ebe78cf54..63607469d 100644 --- a/.github/workflows/build-windows.yml +++ b/.github/workflows/build-windows.yml @@ -20,8 +20,8 @@ concurrency: jobs: build-windows: - # Pin to windows-2025 (VS 2022) until VS 2026 is validated. - runs-on: windows-2025 + # Pin to the VS 2022 image until newer MSVC toolchains are validated. + runs-on: windows-2022 env: SCCACHE_GHA_ENABLED: "true" @@ -57,12 +57,6 @@ jobs: sccache --version # Put cl.exe and other build tools in PATH. - # Pin to VS 2022: windows-2025 also ships the VS 2026 toolset, which - # msvc-dev-cmd would otherwise auto-select. Although Hunter v0.26.9 now - # *recognizes* VS 2026 (MSVC_VERSION 195x), depthai pins 2020-era deps - # (e.g. spdlog 1.8.2 + fmt 7) that do not *compile* with the VS 2026 - # toolchain. VS 2022 is the newest compiler depthai's pinned deps build - # with. Drop this pin once depthai updates its Hunter config dep versions. - name: Setup MSVC (Developer Command Prompt) uses: ilammy/msvc-dev-cmd@v1 diff --git a/cmake/SetupHunter.cmake b/cmake/SetupHunter.cmake index 73a493ac1..0abf0a652 100644 --- a/cmake/SetupHunter.cmake +++ b/cmake/SetupHunter.cmake @@ -105,8 +105,8 @@ if(BUILD_PLUGINS AND BUILD_PLUGIN_OAK_CAMERA) set(ENV{CMAKE_POLICY_VERSION_MINIMUM} "3.5") HunterGate( - URL "https://github.com/cpp-pm/hunter/archive/v0.26.9.tar.gz" - SHA1 "a962c9f0cfd6f8fc62ea25943d89debfa61d4d4a" + URL "https://github.com/cpp-pm/hunter/archive/9d9242b60d5236269f894efd3ddd60a9ca83dd7f.tar.gz" + SHA1 "16cc954aa723bccd16ea45fc91a858d0c5246376" LOCAL # Uses cmake/Hunter/config.cmake ) endif()