-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
opencv: Fix lack of config verification #22833
base: master
Are you sure you want to change the base?
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I've restarted the build now that quirc is properly handled :) |
Conan v1 pipeline ❌Failure in build 1 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. Conan v2 pipeline ❌
The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping See details:Failure in build 1 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
I figured something like this would happen:
It looks like this is getting enabled by default because DirectX support is enabled by default (see: https://github.com/opencv/opencv/blob/f37924796f5e07d14b9011400573a48343a22d26/CMakeLists.txt#L424), so we could either disable |
Specify library name and version: opencv/4.x
This PR modifies the OpenCV 4.x recipe to enable the configuration option
ENABLE_CONFIG_VERIFICATION
.According the OpenCV documentation,
ENABLE_CONFIG_VERIFICATION
does the following:The recipe did not enable this option, so it was possible for the build to succeed even though an explicitly enabled dependency was not found. I noticed this issue while I was playing around with my own fork of the FFmpeg recipe -- despite
WITH_FFMPEG
being passed, I would see this in the build output:While
find_package
failed due to my own error in the FFmpeg recipe, I would have expected the build to fail as well, but it succeeded due to the error passing silently. With the change in this PR, the build now fails as expected.