Page MenuHomePhabricator

Support Visual Studio 2022
Closed, ResolvedPublic


With the beta release of Boost 1.78, we should be able to support Visual Studio 2022:

  • Extend CMake/mitkFunctionGetMSVCVersion.cmake
  • Upgrade Boost at least to v1.78 beta
    • Upload tarball to
    • Use Boost_ADDITIONAL_VERSIONS in MITK_Boost_Config.cmake
    • Add a note to the minimum required CMake version to also check for Boost in future updates of CMake
  • Extend the Qt search heuristic in the top-level CMakeLists.txt to accept the binary compatible 2017 and 2019 binaries in case of Visual Studio 2022
  • Add Visual Studio 2022 to Tier 2 platforms in documentation

Event Timeline

kislinsk triaged this task as Wishlist priority.Nov 18 2021, 9:03 AM
kislinsk created this task.
IMPORTANT: Visual Studio 2022 didn't work out of the box on my machine. For example, CMake wasn't even able to detect the compilers and I wasn't able to link a minimum executable when using Visual Studio 2022 directly. It always boils down to the linker not being able to find ucrt(d).lib. It seems to be a bug in the default Windows SDK version that comes with Visual Studio 2022 at the moment and/or a bug in Visual Studio 2022 itself, since the SDK works fine with Visual Studio 2019. Fix: In the Visual Studio Installer, uninstall the default Windows 10 SDK (10.0.19041.0) and install Windows 10 SDK (10.0.20348.0).

Deleted branch from rMITK MITK: feature/T28861-SupportVisualStudio2022.

kislinsk updated the task description. (Show Details)