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

New: Usr: Added opencv/4.5.0 #3409

Merged
merged 11 commits into from
Nov 21, 2020
Merged

Conversation

bverhagen
Copy link
Contributor

Resolves #3313

Specify library name and version: opencv/4.5.0

  • I've read the guidelines for contributing.
  • I've followed the PEP8 style guides for Python code in the recipes.
  • I've used the latest Conan client version.
  • I've tried at least one configuration locally with the
    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.

@conan-center-bot
Copy link
Collaborator

Failure in build 1 (9207282844b52a8b7367dbcfa5ffeb80b6809f73):

  • opencv/4.5.0
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_export(): ERROR: [SYSTEM REQUIREMENTS (KB-H032)] The method 'SystemPackageTool.install' is not allowed in the recipe. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H032)
      • [HOOK - conan-center.py] pre_export(): ERROR: [CMAKE VERBOSE MAKEFILE (KB-H046)] The CMake definition 'set(CMAKE_VERBOSE_MAKEFILE ON)' is not allowed. Remove it from recipes/opencv/4.x/test_package/CMakeLists.txt. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H046)

@conan-center-bot
Copy link
Collaborator

Failure in build 2 (a214115d2fe3567ec8fc6e7c85228a0636e16d30):

  • opencv/4.5.0
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_export(): ERROR: [SYSTEM REQUIREMENTS (KB-H032)] The method 'SystemPackageTool.install' is not allowed in the recipe. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H032)

@bverhagen
Copy link
Contributor Author

Ok, so it seems I have to move gtkmm to its separate gtkmm/system package.

Copy link
Contributor

@prince-chrismc prince-chrismc left a 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!

if self._cmake:
return self._cmake
self._cmake = CMake(self)
self._cmake.definitions['CMAKE_CXX_STANDARD'] = '11'
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor Author

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.


add_components([
{"target": "opencv_core", "lib": "core", "requires": ["zlib::zlib"] + tbb()},
{"target": "opencv_flann", "lib": "flann", "requires": ["opencv_core"] + tbb()},
Copy link
Contributor

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?

Copy link
Contributor Author

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).

Copy link
Member

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

@conan-center-bot
Copy link
Collaborator

Failure in build 3 (b078aa48f0339e112bb44a9528f01ac1022ea583):

  • opencv/4.5.0
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_export(): ERROR: [DEFAULT SHARED OPTION VALUE (KB-H050)] The option 'shared' must be 'False' by default. Update 'default_options'. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H050)

@conan-center-bot
Copy link
Collaborator

Some configurations of 'opencv/4.5.0' failed in build 4 (958d9bd3889f5ff27d49bce121c71c537474f85d):

  • Windows x86_64, Release, Visual Studio 14, MT. Options: opencv:shared-False
  • Access to all the logs
  • Linux x86_64, Release, gcc 8, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 9, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 6, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 3.9, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, clang 3.9, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, clang 4.0, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 3.9, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, clang 4.0, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 4.0, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 5.0, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 5.0, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, clang 5.0, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, clang 3.9, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 8, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 6.0, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 9, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 9, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 9, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 7, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 8, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 4.9, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 5, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 5, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 5, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 8, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 7, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 6, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 5, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 8, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 6, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 7, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 4.9, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 4.9, libstdc++ . Options: opencv:shared-True
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 7, libstdc++11 . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, gcc 6, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 6.0, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 8, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, gcc 4.9, libstdc++ . Options: opencv:shared-True
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 9, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 7.0, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, clang 6.0, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 9, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, clang 7.0, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, clang 6.0, libstdc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Debug, clang 8, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 7.0, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository
  • Linux x86_64, Release, clang 4.0, libc++ . Options: opencv:shared-False
    You are depending on 'gtkmm/system' but it is not in the repository

@bverhagen bverhagen mentioned this pull request Nov 4, 2020
4 tasks
@bverhagen
Copy link
Contributor Author

#3410 should fix the missing system dependency.

@prince-chrismc
Copy link
Contributor

Please refrain from the squash, it makes it more difficult to review the PR 🙏

@bverhagen bverhagen mentioned this pull request Nov 10, 2020
4 tasks
@conan-center-bot
Copy link
Collaborator

Some configurations of 'opencv/4.5.0' failed in build 5 (c3238ae472a1818a136007a2c36bd2cfda0ab5d4):

@conan-center-bot
Copy link
Collaborator

Some configurations of 'opencv/4.5.0' failed in build 6 (52f947b50a1539a8bdd0d1bf47a385c96b7a5649):

  • Linux x86_64, Release, clang 3.9, libstdc++ . Options: opencv:shared-False
  • Access to all the logs
  • Linux x86_64, Release, clang 3.9, libc++ . Options: opencv:shared-False
  • Access to all the logs
  • Linux x86_64, Debug, clang 3.9, libc++ . Options: opencv:shared-False
  • Access to all the logs
  • Linux x86_64, Debug, clang 4.0, libstdc++ . Options: opencv:shared-False
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 14, MTd. Options: opencv:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown folder 'etc' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013)
      • [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown file 'LICENSE' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013)
      • [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown file 'setup_vars_opencv4.cmd' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013)
      • [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown folder 'x64' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs
  • Windows x86_64, Debug, Visual Studio 15, MTd. Options: opencv:shared-False
    • Hooks errors detected:
      • [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown folder 'etc' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013)
      • [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown file 'LICENSE' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013)
      • [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown file 'setup_vars_opencv4.cmd' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013)
      • [HOOK - conan-center.py] post_package(): ERROR: [DEFAULT PACKAGE LAYOUT (KB-H013)] Unknown folder 'x64' in the package (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H013)
    • Log download
    • Log error Download
    • Profile
  • Access to all the logs

@ghost
Copy link

ghost commented Nov 16, 2020

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>
@uilianries
Copy link
Member

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>
@uilianries
Copy link
Member

Hi @bverhagen!! Please consider bverhagen#1

I've added some improvements, including Contrib support.

@conan-center-bot
Copy link
Collaborator

Failure in build 7 (b03d86d31ed61d04ceb3da34a34e169105148c31):

  • opencv/4.5.0
    • Hooks errors detected:
      • [HOOK - conan-center.py] pre_export(): ERROR: [CMAKE VERSION REQUIRED (KB-H048)] The CMake definition CXX_STANDARD requires CMake 3.1 at least. Update to 'cmake_minimum_required(VERSION 3.1)'. (https://github.com/conan-io/conan-center-index/blob/master/docs/error_knowledge_base.md#KB-H048)

@conan-center-bot
Copy link
Collaborator

Some configurations of 'opencv/4.5.0' failed in build 8 (973b198f14f07a47d5924d8541963b73756784e3):

Co-authored-by: Uilian Ries <uilianries@gmail.com>
@conan-center-bot
Copy link
Collaborator

Some configurations of 'opencv/4.5.0' failed in build 10 (c2981155f2fb66962dd9eb3bb83e50d089e1b326):

Co-authored-by: Uilian Ries <uilianries@gmail.com>
Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@conan-center-bot
Copy link
Collaborator

All green in build 11 (d023d8ceb626d9af27a0c9c6c122255377e1e50a)! 😊


def parallel():
if self.options.parallel:
return ["tbb::tbb"] if self.options.parallel == "tbb" else ["openmp"]
Copy link
Contributor

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
Copy link
Contributor

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 🤔

Copy link
Contributor

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!

Copy link
Contributor

@prince-chrismc prince-chrismc left a 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!

@conan-center-bot conan-center-bot merged commit c31521c into conan-io:master Nov 21, 2020
@ericLemanissier ericLemanissier mentioned this pull request Nov 24, 2020
4 tasks
@Croydon Croydon mentioned this pull request Dec 17, 2020
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.

[request] opencv/4.5.0
5 participants