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

[opencv/4.x.x] fix CMake imported targets + bump dependencies #4267

Merged
merged 9 commits into from
Feb 13, 2021

Conversation

SpaceIm
Copy link
Contributor

@SpaceIm SpaceIm commented Jan 15, 2021

Specify library name and version: opencv/4.x.x

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

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Jan 15, 2021

Actually, it doesn't work yet. I guess that build modules are called before targets are defined (but it works when the recipe doesn't use components).

@conan-center-bot
Copy link
Collaborator

Some configurations of 'opencv/4.5.0' failed in build 2 (e3cf2811a19cc012f15cc9b462a0f4ac88bf1335):

@ghost
Copy link

ghost commented Jan 15, 2021

I detected other pull requests that are modifying opencv/4.x recipe:

This message is automatically generated by https://github.com/ericLemanissier/conan-center-conflicting-prs so don't hesitate to report issues/improvements there.

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Jan 26, 2021

Let's wait conan 1.33.0 in CI.

This was referenced Feb 5, 2021
@conan-center-bot
Copy link
Collaborator

Failure in build 4 (35ae47a048f66febecd6b2999940075cdd97fba5):

  • opencv/4.1.2@:
    An unexpected error happened and has been reported

  • opencv/4.5.1@:
    An unexpected error happened and has been reported

  • opencv/4.5.0@:
    An unexpected error happened and has been reported


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.

@SpaceIm SpaceIm marked this pull request as ready for review February 12, 2021 17:12
@SpaceIm SpaceIm closed this Feb 12, 2021
@SpaceIm SpaceIm reopened this Feb 12, 2021
@conan-center-bot
Copy link
Collaborator

Failure in build 5 (35ae47a048f66febecd6b2999940075cdd97fba5):

  • opencv/4.5.0@:
    An unexpected error happened and has been reported

  • opencv/4.1.2@:
    An unexpected error happened and has been reported

  • opencv/4.5.1@:
    An unexpected error happened and has been reported


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-center-bot
Copy link
Collaborator

Failure in build 6 (35ae47a048f66febecd6b2999940075cdd97fba5):

  • opencv/4.1.2@:
    An unexpected error happened and has been reported

  • opencv/4.5.0@:
    An unexpected error happened and has been reported

  • opencv/4.5.1@:
    An unexpected error happened and has been reported


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-center-bot
Copy link
Collaborator

Failure in build 7 (35ae47a048f66febecd6b2999940075cdd97fba5):

  • opencv/4.1.2@:
    An unexpected error happened and has been reported

  • opencv/4.5.0@:
    An unexpected error happened and has been reported

  • opencv/4.5.1@:
    An unexpected error happened and has been reported


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.

@jgsogo
Copy link
Contributor

jgsogo commented Feb 12, 2021

This is very weird. The CI is identifying 35ae47... as the latest commit when there is a merge afterward. The problem is that using the previous commit there is a conflict with master and it fails.

I would like to have a look at this issue and try to understand why this is happening, but I'm not working this weekend 😅 ... if you want to keep working on this PR I think the best/easiest solution is to push an empty commit and the CI should start to use it.

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Feb 12, 2021

Thanks @jgsogo, I've pushed an empty commit

@conan-center-bot
Copy link
Collaborator

All green in build 9 (20af42464f4feeafc4b11f15aac464aeaecfe52f):

  • opencv/4.1.2@:
    All packages built successfully! (All logs)

  • opencv/4.5.1@:
    All packages built successfully! (All logs)

  • opencv/4.5.0@:
    All packages built successfully! (All logs)

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Feb 12, 2021

Well, it was a typo. So we can create non namespaced imported targets for recipes with components, even before conan 1.33.0 :)

@SpaceIm
Copy link
Contributor Author

SpaceIm commented Feb 12, 2021

@madebr @prince-chrismc @ericLemanissier @uilianries @SSE4 Could you review please?

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!

)

@staticmethod
def _create_cmake_module_alias_targets(module_file, targets):
Copy link
Contributor

Choose a reason for hiding this comment

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

I dislike how much this is being copied around, it really need to be added to Conan

Copy link
Contributor

Choose a reason for hiding this comment

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

Do there exist examples of this pattern for creating imported executables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried something in geographiclib but canceled the modification: ec87edc

imported executables will be implemented in conan.

@conan-center-bot conan-center-bot merged commit 4efff19 into conan-io:master Feb 13, 2021
@SpaceIm SpaceIm deleted the fix/opencv4-cmake-targets branch February 13, 2021 07:36
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.

6 participants