Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return an error when the parsing has failed #577

Merged

Conversation

kino-ma
Copy link
Contributor

@kino-ma kino-ma commented May 28, 2024

Hi maintainers! I encountered an issue while using this library, and tried to fix it.
I'm sorry if this PR doesn't follow some rules, as I'm very new to contribute to OSSes.
Please notify me if there's any missing information 🙏
Thank you!


Currently, probe_from_paths returns empty Version (i.e., 0.0.0) when it fails to guess the OpenCV version from header files.
It causes an "Unsupported OpenCV version" error.

I saw the error because the function could not find version.hpp at the expected location.
The root cause was the misconfiguration of include paths.

Instead, it will be more user-friendly if it explicitly reports an error.

@twistedfall
Copy link
Owner

Thanks a lot!

@twistedfall twistedfall merged commit 77fbe22 into twistedfall:master May 28, 2024
15 checks passed
@kino-ma
Copy link
Contributor Author

kino-ma commented May 28, 2024

Thank you for merging! 🙏

@kino-ma kino-ma deleted the exit-on-version-parse-failure branch May 28, 2024 11:38
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