Windows build fails on Visual Studio 2026 / newer MSVC toolsets (hardcoded VS2022 + toolset)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- cmake, cpp, opencv, tensorflow
- 領域
- build-system, tooling
調査の方向性
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, andwindows_test.bathardcodeC:\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_signedis forbidden") on TensorFlow/XLA's quantized-type specializations (xla/tsl/framework/type_traits.h). XLA builds with/WX, so it escalates to a fatalC2220and 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
openvinodependency link usesmklink /d(symbolic link), which requiresSeCreateSymbolicLinkPrivilege(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
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
openvinotoolkit/model_server のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
openvinotoolkit/model_server#4613 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
openvinotoolkit/model_server#4609 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
`/v3/models` lists every model twice when `group_name` and `--idle_unload_timeout_seconds` are combined対応中かも @atobiszei が 4 日前に担当しました。 オープン
openvinotoolkit/model_server#4604 · リアクション 1 件 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
Idle unload never happens again if the client disconnects while a sleeping graph is waking up対応中かも @atobiszei が 4 日前に担当しました。 オープン
openvinotoolkit/model_server#4603 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
openvinotoolkit/model_server#4599 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
openvinotoolkit/model_server の issue をすべて見る
似ている issue
-
component: split-view platform: windows
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
zen-browser/desktop#15616 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area/ysql kind/bug priority/medium status/awaiting-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
yugabyte/yugabyte-db#34415 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
WayfireWM/wayfire#3148 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
backend:DirectX
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
llvm/llvm-project#227530 ·
メンテナーはふだん 1 日以内に返信