Skip to content

Fix OpenCV build with Visual Studio 2026#310

Merged
JanuszBedkowski merged 1 commit intoMapsHD:mainfrom
bloom256:fix/msvc-2026-compat
Jan 16, 2026
Merged

Fix OpenCV build with Visual Studio 2026#310
JanuszBedkowski merged 1 commit intoMapsHD:mainfrom
bloom256:fix/msvc-2026-compat

Conversation

@bloom256
Copy link
Copy Markdown
Collaborator

This PR fixes a build issue when configuring the project with latest Visual Studio 2026.

When opening the CMake project in VS 2026, CMake downloads OpenCV 4.12.0, but configuration fails with:
"Found OpenCV Windows Pack but it has no binaries compatible with your configuration."

This happens because OpenCV 4.12 does not provide Windows binaries compatible with the MSVC toolset used by Visual Studio 2026. Support was added in OpenCV 4.13.

The fix updates the downloaded OpenCV version to 4.13.0 for Windows builds.
Linux builds are unchanged.

Tested with:

  • Visual Studio 2026
  • CMake configuration on Windows (x64)

@JanuszBedkowski JanuszBedkowski merged commit e3487d3 into MapsHD:main Jan 16, 2026
5 checks passed
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.

2 participants