Repository navigation
Test Visual Studio 2026 and update dependencies - #507
Conversation
3368786 to
63897a3
Compare
|
@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? |
|
@garethsb Boost 1.86 does only help for current VS 2022 due to BoostDetectToolset.cmake:
In Boost 1.85 it does still look like this (1940 is too small for current VS 2022):
Regarding VS 2026, please note that there is no "vc145" in the above. VS 2026 is supported only since Boost 1.91:
|
Hm, seems to be building and passing tests here though? What am I missing? |
|
@garethsb It builds, but doesn't specialize for the toolset and emits this message (always BoostDetectToolset.cmake):
|
|
I don't think that affects correctness, does it? 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.) |
|
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. |
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). |
|
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. |
|
@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 |
|
Dropped Co-authored-by: Gareth's 🤖 buddy |
bc9c228 to
e907e4d
Compare
lo-simon
left a comment
There was a problem hiding this comment.
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?
OK, I'll add this and check if there should be other |
- 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>
d64ca77 to
3cfb2a0
Compare
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>
3cfb2a0 to
5b9eb21
Compare
|
Rebased onto master. Changes since @lo-simon's approval:
Co-authored-by: Gareth's 🤖 buddy |
Move the primary Windows matrix to VS 2026 while retaining VS 2022 coverage, and update CMake and Conan dependencies to current supported releases.
CI:
windows-2025with VS 2026. Onewindows-2022job keeps VS 2022 coverage, and onewindows-2025job builds withCMAKE_CXX_STANDARD=17.windows-2025, Conan installs packages withcompiler.version=194, so that it downloads the Conan Center binaries built for MSVC 194 instead of building them. It also setstools.microsoft.msbuild:vs_version=18, because Conan maps 194 to Visual Studio 17, which the image doesn't have.cmakedirectly instead of usinglukka/run-cmake, andlukka/get-cmakeinstalls CMake 4.4.0.Build:
bst/filesystem.husesstd::filesystemfor 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 forceCONFIGmode, so that Boost releases withoutBoostConfig.cmake(before 1.70), such as the Boost 1.65.1 CI job, are still found.Dependencies:
Development/conanfile.pyreplacesconanfile.txt. It forcesboost/1.86.0andnlohmann_json/3.12.0across the graph, because the Conan Center recipes for cpprestsdk and json-schema-validator pin older versions. It also bumps OpenSSL to 3.5.7, json-schema-validator to 2.4.0, zlib to 1.3.2 and jwt-cpp to 0.7.2. The CI Conan cache key now hashesconanfile.py.Co-authored-by: Gareth's 🤖 buddy