Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Windows build fails on Visual Studio 2026 / newer MSVC toolsets (hardcoded VS2022 + toolset)

オープン
#4,333 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
cmake, cpp, opencv, tensorflow

調査の方向性

windows_install_build_dependencies.bat、windows_build.bat、windows_setupvars.bat、windows_test.bat から始め、その後、完了した作業について PR #4328 を確認してください。権限を昇格させたシェルを使わずに、Visual Studio 2022–2026 で Windows のビルドと依存関係のセットアップを検証してください。この issue は、その pull request によってすでに解決済みと説明されています。

索引モデルが issue の本文から書いたものです。

説明

Describe the bug

The Windows build scripts hardcode Visual Studio 2022 Build Tools and a specific MSVC toolset version, so a machine with only Visual Studio 2026 (v18 / MSVC 14.51) installed cannot build OVMS.

Specifically:

  • windows_install_build_dependencies.bat, windows_build.bat, windows_setupvars.bat, and windows_test.bat hardcode C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools, the CMake generator string "Visual Studio 17 2022", and a pinned MSVC toolset version (14.44.35207).
  • MSVC 14.51 (VS 2026) raises C5285 ("specializing std::is_signed is forbidden") on TensorFlow/XLA's quantized-type specializations (xla/tsl/framework/type_traits.h). XLA builds with /WX, so it escalates to a fatal C2220 and the build aborts.
  • The OpenCV dependency build hardcodes -T v142 (VS 2019 toolset, absent on a VS 2026 box), and newer CMake (4.x) errors out in OpenCV's python auto-detection (find_package called with invalid argument "OFF").
  • The openvino dependency link uses mklink /d (symbolic link), which requires SeCreateSymbolicLinkPrivilege (admin / Developer Mode).
Expected behavior

The Windows build should auto-detect the installed Visual Studio edition and MSVC toolset (via vswhere) and build successfully on supported newer toolchains (VS 2022 through VS 2026), without requiring an elevated shell.

Environment
  • OS: Windows 11
  • Toolchain: Visual Studio 2026 (18.7), MSVC 14.51
  • OVMS: 2026.3.0 (built from source)
Fix

Resolved by PR #4328 (vswhere auto-detection of VS edition/generator/toolset, /wd5285 for XLA, OpenCV toolset/python fixes, and mklink /j junction for non-elevated installs).

主要言語
C++
スター
932
フォーク
278
平均マージ
3日 5時間
マージ済み PR(30日)
70

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

openvinotoolkit/model_server のほかの issue

openvinotoolkit/model_server の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。