Skip to content

MSYS2: fix package manager -> OpenCV 4 - #8531

Merged
danoli3 merged 2 commits into
openframeworks:masterfrom
danoli3:msys2-fix
Aug 9, 2026
Merged

MSYS2: fix package manager -> OpenCV 4#8531
danoli3 merged 2 commits into
openframeworks:masterfrom
danoli3:msys2-fix

Conversation

@danoli3

@danoli3 danoli3 commented Aug 9, 2026

Copy link
Copy Markdown
Member

Fix msys2 package manager to OpenCV 4 instead of 5

MSYS2 recently moved to OpenCV 5, whose pkg-config module is opencv5
instead of opencv4. install_dependencies.sh only checked for opencv4
before falling back to opencv (v3), so on opencv5-only environments
the build failed with "Package 'opencv' not found".

Detection now tries opencv5, then opencv4, then opencv (v3), and the
sed rewrite of ofxOpenCv/addon_config.mk uses a single pattern that
matches any of the three module names as the prior state, so it works
regardless of what was previously written to the file.
@danoli3 danoli3 changed the title MSYS2: fix OpenCV 5 detection in install_dependencies.sh MSYS2: fix package manager -> OpenCV 4 Aug 9, 2026
@danoli3
danoli3 merged commit 2dcb7c7 into openframeworks:master Aug 9, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant