-
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
New: Usr: Added opencv/4.5.0 #3409
Conversation
Failure in build 1 (
|
Failure in build 2 (
|
Ok, so it seems I have to move gtkmm to its separate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not the expert but it looks really good!
recipes/opencv/4.x/conanfile.py
Outdated
if self._cmake: | ||
return self._cmake | ||
self._cmake = CMake(self) | ||
self._cmake.definitions['CMAKE_CXX_STANDARD'] = '11' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks a little suspicious =? Is this not managed by conan?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was originally there as a patch for openEXR in 2.4.13.7 that I rewrote. I will retest, it probably does not need to be there anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, tested and it seems to be spurious indeed. I removed it.
recipes/opencv/4.x/conanfile.py
Outdated
|
||
add_components([ | ||
{"target": "opencv_core", "lib": "core", "requires": ["zlib::zlib"] + tbb()}, | ||
{"target": "opencv_flann", "lib": "flann", "requires": ["opencv_core"] + tbb()}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if core requires tbb does it need to be repeated everywhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also a good point! I also took this literally from the 2.4.13.7 conanfile. I assumed they would have a good reason to do this. I am not sure how I can test this and be sure it can go (the test_package isn't using tbb).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it's listed for all targets. I've commented on 2.4.13.7 PR, but you can check all cmake target files here: https://gist.github.com/uilianries/e5de90e8df47b0bd6eae25a25e334c5c
Failure in build 3 (
|
Some configurations of 'opencv/4.5.0' failed in build 4 (
|
#3410 should fix the missing system dependency. |
Please refrain from the squash, it makes it more difficult to review the PR 🙏 |
Some configurations of 'opencv/4.5.0' failed in build 5 (
|
Some configurations of 'opencv/4.5.0' failed in build 6 (
|
I detected other pull requests that are modifying opencv recipe: This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there. |
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Hi @bverhagen I'm doing some changes for your PR, please wait, I should open new PR for you today. |
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Signed-off-by: Uilian Ries <uilianries@gmail.com>
Hi @bverhagen!! Please consider bverhagen#1 I've added some improvements, including Contrib support. |
Improve OpenCV 4.x
Failure in build 7 (
|
Some configurations of 'opencv/4.5.0' failed in build 8 (
|
Co-authored-by: Uilian Ries <uilianries@gmail.com>
Some configurations of 'opencv/4.5.0' failed in build 10 (
|
Co-authored-by: Uilian Ries <uilianries@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
All green in build 11 (
|
|
||
def parallel(): | ||
if self.options.parallel: | ||
return ["tbb::tbb"] if self.options.parallel == "tbb" else ["openmp"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How does openmp work? we do not have a self.requires("...")
for openmp but we add it self.cpp_info.components[conan_component].requires = requires
self._cmake.definitions["WITH_OPENCL_SVM"] = False | ||
self._cmake.definitions["WITH_OPENGL"] = False | ||
self._cmake.definitions["WITH_OPENJPEG"] = False | ||
self._cmake.definitions["WITH_OPENMP"] = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's also disabled here 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nvm, it's enabled later!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an exceptional starting point!
Resolves #3313
Specify library name and version: opencv/4.5.0
conan-center hook activated.
Many thanks to all contributors to opencv/2.4.13.7 in conan-center-index, whose work I used as a basis. It is not feature-complete, but supports the same options as 2.4.13.7 and can be used a basis for further enabling further opencv features and releases.