Skip to content

Test Visual Studio 2026 and update dependencies - #507

Merged
lo-simon merged 10 commits into
sony:masterfrom
garethsb:chore/vs2026-dependency-updates
Nov 17, 2026
Merged

lo-simon merged 10 commits into
sony:masterfrom
garethsb:chore/vs2026-dependency-updates

Conversation

@garethsb

@garethsb garethsb commented Jul 20, 2026 •

Copy link
Copy Markdown
Contributor

Move the primary Windows matrix to VS 2026 while retaining VS 2022 coverage, and update CMake and Conan dependencies to current supported releases.

CI:

  • The Windows jobs run on windows-2025 with VS 2026. One windows-2022 job keeps VS 2022 coverage, and one windows-2025 job builds with CMAKE_CXX_STANDARD=17.
  • On windows-2025, Conan installs packages with compiler.version=194, so that it downloads the Conan Center binaries built for MSVC 194 instead of building them. It also sets tools.microsoft.msbuild:vs_version=18, because Conan maps 194 to Visual Studio 17, which the image doesn't have.
  • The build, install and install-test steps call cmake directly instead of using lukka/run-cmake, and lukka/get-cmake installs CMake 4.4.0.

Build:

  • bst/filesystem.h uses std::filesystem for C++17 on MSVC. Below C++17, VS 2026 (MSVC 14.51) uses Boost.Filesystem, because that release removed <experimental/filesystem>.
  • find_package(Boost) doesn't force CONFIG mode, so that Boost releases without BoostConfig.cmake (before 1.70), such as the Boost 1.65.1 CI job, are still found.

Dependencies:

Co-authored-by: Gareth's 🤖 buddy

@garethsb
garethsb force-pushed the chore/vs2026-dependency-updates branch 4 times, most recently from 3368786 to 63897a3 Compare July 21, 2026 07:02
@garethsb
garethsb marked this pull request as draft July 21, 2026 07:07
@garethsb

Copy link
Copy Markdown
Contributor Author

@lo-simon, @jonathan-r-thorpe, @aholzinger ... so I think there's an approach here to support VS 2026 and update deps (if we're happy with Boost 1.86.0) ... thoughts?

@aholzinger

Copy link
Copy Markdown

@garethsb Boost 1.86 does only help for current VS 2022 due to BoostDetectToolset.cmake:

if((MSVC_VERSION GREATER 1929) AND (MSVC_VERSION LESS 1950))

set(BOOST_DETECTED_TOOLSET "vc143")

In Boost 1.85 it does still look like this (1940 is too small for current VS 2022):

if((MSVC_VERSION GREATER 1929) AND (MSVC_VERSION LESS 1940))

set(BOOST_DETECTED_TOOLSET "vc143")

Regarding VS 2026, please note that there is no "vc145" in the above.

VS 2026 is supported only since Boost 1.91:

if((MSVC_VERSION GREATER 1949) AND (MSVC_VERSION LESS 1960))

set(BOOST_DETECTED_TOOLSET "vc145")

elseif((MSVC_VERSION GREATER 1929) AND (MSVC_VERSION LESS 1950))

set(BOOST_DETECTED_TOOLSET "vc143")

@garethsb

Copy link
Copy Markdown
Contributor Author

VS 2026 is supported only since Boost 1.91

Hm, seems to be building and passing tests here though? What am I missing?

@aholzinger

Copy link
Copy Markdown

@garethsb It builds, but doesn't specialize for the toolset and emits this message (always BoostDetectToolset.cmake):

message(STATUS "Boost toolset is unknown (compiler ${CMAKE_CXX_COMPILER_ID} ${CMAKE_CXX_COMPILER_VERSION})")

@garethsb

Copy link
Copy Markdown
Contributor Author

I don't think that affects correctness, does it? NmosCppDependencies.cmake relies on BOOST_ALL_NO_LIB so MSVC auto-link is off, the libraries are linked via the Boost:: targets, so having the toolset identifier in the library names is irrelevant?

Moving all of nmos-cpp, cpprestsdk and websocketpp past Boost 1.86.0 would be a bit of a headache? (Not the code changes, but using forked repos and getting those approved into Conan Center recipes, for example.)

@aholzinger

Copy link
Copy Markdown

Well, I'm not a Boost build expert, but I wouldn't use Boost with an unsupported toolset in a system critical application (without prior having checked all the inplications, ergo becoming a Boost build expert). For the time being I can live with VS 2022.

So for the moment I suggest to stick with Boost 1.86 (meaning not officially support VS 2026), but for the long term (Boost 1.86 is already two years old) the cpprestsdk issue has to be resolved anyhow, which is the way bigger issue. If a replacement is found I guess the changes in nmos-cpp regarding updated Boost Asio in newer Boost versions will be the smalles part.

@garethsb

Copy link
Copy Markdown
Contributor Author

for the long term (Boost 1.86 is already two years old) the cpprestsdk issue has to be resolved anyhow, which is the way bigger issue. If a replacement is found I guess the changes in nmos-cpp regarding updated Boost Asio in newer Boost versions will be the smalles part.

True... That's #187.

Our (@lo-simon, @jonathan-r-thorpe) feeling until recently has been that we would maintain a feature-frozen fork of cpprestsdk if that became necessary, because we don't need new features for nmos-cpp, just platform/build/security updates. However, with 🤖 support it might now be practical to switch nmos-cpp to other async-task, JSON and HTTP/WebSocket libraries, though I suspect not without a lot of pain for application developers who have directly integrated nmos-cpp (rather than using one of the API wrappers like NVIDIA/nvnmos's C API or gRPC daemon or GStreamer plugin).

@aholzinger

Copy link
Copy Markdown

Well with Mythos you can probably fix the biggest part of any still unknown issues in cpprestsdk :-)

I was able to build nmos-cpp (without Conan) on a freshly installed Ubuntu based 26.04 LTS due to the fact that there was still Boost 1.83 available in the Ubuntu 26.04 repos. Once Boost 1.83 isn't in available anymore in the next LTS it will be less easy. At least then it would be nice to have nmos-cpp2 relying on current libs (at least Boost).

Obviously any changes in nmos-cpp will also hit myself then :-)

Thank you for considering Boost 1.86 for the moment.

@garethsb

garethsb commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

@lo-simon @jonathan-r-thorpe I'll rework this PR once the cpprest-lts packages are in Conan Center (conan-io/conan-center-index#31372 for websocketpp 0.8.4+cpprest-lts and conan-io/conan-center-index#31373 for cpprestsdk 2.10.20+cpprest-lts) and #528 is merged.

With those in place, nmos-cpp can use Boost 1.91.0, so I'll replace the Boost 1.86.0 cap and its force=True, and the "Boost 1.87+ is not yet supported" note in Dependencies.md, with requirements on the forks. The Visual Studio 2026 CI, the bst/filesystem.h change and the other dependency updates stay. I'll also update the non-Conan CI setup and the docs to build cpprestsdk from cpprest-lts rather than Microsoft/cpprestsdk.

@garethsb

Copy link
Copy Markdown
Contributor Author

Dropped CONFIG from find_package(Boost) so that the Boost 1.65.1 job in #528 can still find Boost. Boost only ships BoostConfig.cmake from 1.70, and CMake keeps FindBoost while nmos-cpp's minimum CMake version is below 3.30 (policy CMP0167). Conan builds still use config mode, through the cmake-conan provider and CMAKE_FIND_PACKAGE_PREFER_CONFIG.

Co-authored-by: Gareth's 🤖 buddy

@garethsb
garethsb force-pushed the chore/vs2026-dependency-updates branch 3 times, most recently from bc9c228 to e907e4d Compare November 12, 2026 21:20
@lo-simon
lo-simon marked this pull request as ready for review November 16, 2026 22:56

@lo-simon lo-simon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

I forgot to add the Ubuntu 24.04 boost 1.65.1 to the Build Status table. Do you think it is okay to add it to the table in this PR?

@garethsb

Copy link
Copy Markdown
Contributor Author

I forgot to add the Ubuntu 24.04 boost 1.65.1 to the Build Status table. Do you think it is okay to add it to the table in this PR?

OK, I'll add this and check if there should be other README.md updates.

garethsb added a commit to garethsb/nmos-cpp that referenced this pull request Nov 17, 2026
- Visual Studio 2026 and Boost 1.65.1 builds in CI: sony#507, sony#528
- IPMX TR-10-8 Link Offset Delay and TR-10-9 multicast addresses: sony#531, sony#533, sony#534
- Validation of registered ext_ transport parameters: sony#531
- SMPTE ST 2022-5 FEC, ST 2022-7, RTP parameter sets and RTCP SDP: sony#502, sony#514, sony#515
- Extension points for SDP attributes and BCP-008 status monitors: sony#511, sony#512
- Registry Admin UI path traversal fix on Windows: sony#517
- IS-04 attached_network_device: sony#491

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
@garethsb
garethsb force-pushed the chore/vs2026-dependency-updates branch 3 times, most recently from d64ca77 to 3cfb2a0 Compare November 17, 2026 13:42
Move the primary Windows matrix to VS 2026 while retaining VS 2022 coverage, and update CMake and Conan dependencies to current supported releases.

Force Boost across the Conan graph to override the boost/1.83.0 pins in the cpprestsdk and websocketpp recipes, update the current tested versions in CMake, prefer BoostConfig for CMake 4.x, and replace lukka/run-cmake with plain cmake.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
Boost 1.87 removed deprecated Asio APIs that cpprestsdk 2.10.19 and
unpatched websocketpp 0.8.2 still use, so Conan builds of cpprestsdk
against 1.91 fail.

Drop the without_cobalt option, which worked around a Boost 1.91
packaging failure (conan-io/conan-center-index#30414). The Boost recipe
already disables Cobalt below C++20.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
compiler.version=194 maps to Visual Studio 17, which is absent on
windows-2025; set tools.microsoft.msbuild:vs_version=18 so source
builds (e.g. json-schema-validator) use the installed VS 2026.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
Use Boost.Filesystem when VS 2026 builds below C++17, while retaining
std::filesystem for C++17 and adding a targeted CI job for that path.

In that C++17 job, CI treats warnings as errors, so suppress MSVC's
C4996 deprecation warning for the bundled Catch's remaining call to
std::uncaught_exception, as was already done for the other call.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
Boost only provides BoostConfig.cmake from 1.70.0, so forcing CONFIG
mode prevents finding older Boost installs, such as the Boost 1.65.1
build in sony#528. With cmake_minimum_required(VERSION 3.17), policy
CMP0167 is unset, so CMake 3.30 and later, including CMake 4.x, still
provide FindBoost (with a policy warning). Raising the minimum to 3.30
or later would make CMake skip FindBoost, so Boost releases before
1.70, which have no BoostConfig.cmake, would no longer be found.

Conan builds already find BoostConfig.cmake: the cmake-conan provider
passes PATHS to find_package, which implies CONFIG mode, and the
Conan Center nmos-cpp recipe sets CMAKE_FIND_PACKAGE_PREFER_CONFIG.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
Add the Boost 1.65.1 job, mark the VS 2026 job that builds with C++17,
and correct the GCC versions to those that the GitHub-hosted Ubuntu
runners now provide.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
- Visual Studio 2026 and Boost 1.65.1 builds in CI: sony#507, sony#528
- IPMX TR-10-8 Link Offset Delay, and TR-10-9 multicast addresses and DNS-SD browse strategy: sony#484, sony#531, sony#533, sony#534
- Validation of registered ext_ transport parameters: sony#531
- SMPTE ST 2022-5 FEC, ST 2022-7, RTP parameter sets and RTCP SDP: sony#502, sony#514, sony#515
- Extension points for SDP attributes and BCP-008 status monitors: sony#511, sony#512
- Registry Admin UI path traversal fix on Windows: sony#517
- IS-04 attached_network_device: sony#491

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
List the compilers that the build-test workflow uses, matching the
README Build Status table.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
GCC 4.8 and Boost 1.54.0 were last tested in the Ubuntu 14.04 CI job,
which was disabled in sony#421. Say instead which GCC releases CI tests,
and state the C++11 requirement first in the notes, which cover both
Visual Studio and GCC. Use current Ubuntu LTS releases in the CMake and
Boost package examples.

Use Visual Studio 2022 in the Boost and C++ REST SDK examples, as
Getting Started already does; the b2 shipped with Boost 1.86 does not
know the Visual Studio 2026 toolset. Use the boost_1_86_0 directory in
the example Boost paths.

Update the tested Conan version to the one CI installs, the example
MSVC profile to the version CI pins, and the nmos-cpp package to the
current Conan Center release.

Add a caution that the Raspberry Pi instructions are not regularly
tested and their versions are out of date.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
Getting Started gives Visual Studio generator command lines, but every
CI job used Ninja, and the documents still claimed testing of the
"Visual Studio 14 2015 Win64" generator.

Give the windows-2022 job the "Visual Studio 17 2022" generator, for
both the nmos-cpp build and the install test of my-nmos-node. The
generator is multi-config, so for that job the build, install and ctest
steps select the Release configuration, and the AMWA tests run the
executables from build/Release. The build name gains a _vs suffix.

The CMake provider installs both Debug and Release Conan packages for a
multi-config generator, so the job's Conan cache key gains a vs- part.
Otherwise the job would restore the existing Release-only cache, and
never save the Debug packages.

State the generators that CI uses in Getting Started, and drop the
claim about tested generators from the C++ REST SDK build instructions,
which CI does not run on Windows.

Also remove the trailing blank line from build-and-test.yml, which
added an extra blank line to the generated workflow.

Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
@garethsb
garethsb force-pushed the chore/vs2026-dependency-updates branch from 3cfb2a0 to 5b9eb21 Compare November 17, 2026 14:07
@garethsb

Copy link
Copy Markdown
Contributor Author

Rebased onto master. Changes since @lo-simon's approval:

  • README: Added the Ubuntu 24.04 Boost 1.65.1 job to the Build Status table, marked the VS 2026 job that builds with C++17, and corrected the GCC versions to those the Ubuntu runners now provide (11.4.0 and 13.3.0). Added recent activity entries for the work merged since the list was last updated.
  • CI: The windows-2022 job now builds with the "Visual Studio 17 2022" generator, so the Visual Studio command lines in Getting Started are exercised. All the other jobs use Ninja.
  • Documents: Getting Started and Dependencies now give the compilers, Ubuntu releases and Conan version that CI uses. The Boost and C++ REST SDK examples use VS 2022, because the b2 in Boost 1.86 doesn't know the VS 2026 toolset. Installation with Conan now uses the current nmos-cpp package from Conan Center. The Raspberry Pi instructions now carry a caution that they are not regularly tested.
  • conanfile.py: No longer forces nlohmann_json, because json-schema-validator's recipe has required nlohmann_json/[>=3.11 <3.13] since json-schema-validator: use the namespaced target conan-io/conan-center-index#31202. Also dropped boost/*:without_cobalt, which only worked around a Boost 1.91 packaging failure ([package] boost/1.91.0: ConanException: These libraries were expected to be built, but were not built: {'boost_cobalt_io_ssl-vc143-mt-x64-1_91'} conan-io/conan-center-index#30414). The Boost recipe already disables Cobalt below C++20.
  • NmosCppDependencies.cmake: The current tested versions now match conanfile.py: json-schema-validator 2.4.0, nlohmann_json 3.12.0 and jwt-cpp 0.7.2.

Co-authored-by: Gareth's 🤖 buddy

@lo-simon
lo-simon merged commit 39c38b6 into sony:master Nov 17, 2026
12 checks passed
@garethsb
garethsb deleted the chore/vs2026-dependency-updates branch November 18, 2026 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants