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

libcvd: new recipe #23216

Merged
merged 7 commits into from
Apr 1, 2024
Merged

libcvd: new recipe #23216

merged 7 commits into from
Apr 1, 2024

Conversation

valgur
Copy link
Contributor

@valgur valgur commented Mar 22, 2024

Adds libCVD: https://github.com/edrosten/libcvd

libcvd - efficient and easy to use C++ computer vision library.

Resolves #23173

Packaging status

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

@conan-center-bot

This comment has been minimized.

Copy link
Contributor

Hooks produced the following warnings for commit a92c02c
libcvd/2.5.0@#0ef32e834debe07ec581f1b5775e3696
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\cvd_debug.dll' links to system library 'ws2_32' but it is not in cpp_info.system_libs.
post_package(): WARN: [MISSING SYSTEM LIBS (KB-H043)] Library '.\bin\cvd.dll' links to system library 'ws2_32' but it is not in cpp_info.system_libs.

@conan-center-bot

This comment has been minimized.

self.requires("libtiff/4.6.0")
if self.options.get_safe("with_opengl", True):
# https://github.com/edrosten/libcvd/blob/RELEASE_2_5_0/cvd/videodisplay.h#L18-L20
self.requires("opengl/system", transitive_headers=True, transitive_libs=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

Would it be possible to target libglvnd here on Linux and FreeBSD instead of opengl/system?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That sounds good to me. My only general doubt is whether it could conflict with other packages still using opengl/system?
libglvnd does not set provides = "opengl", but doesn't it effectively conflict with opengl/system nevertheless?

Copy link
Contributor

Choose a reason for hiding this comment

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

You're totally correct about that, and I think we need to add that to the libglvnd recipe. However, I'd prefer to have less recipes to update in the future to use libglvnd on Linux and FreeBSD. I don't think I've run into issues with the conflict yet, likely related to the fact that on Fedora, using the libglvnd Conan package just dispatches to the system drivers provided by Mesa without a problem. I haven't tested this specific case on Ubuntu, but I do think the Wayland compositor's I'm packaging have conflicts in the graph that pull in opengl/system and I haven't run into issues.

@conan-center-bot

This comment has been minimized.

@conan-center-bot
Copy link
Collaborator

Conan v1 pipeline ✔️

All green in build 8 (621cf92f22a145f69443443957120ae3bd392cb8):

  • libcvd/2.5.1:
    All packages built successfully! (All logs)

Conan v2 pipeline ✔️

Note: Conan v2 builds are now mandatory. Please read our discussion about it.

All green in build 8 (621cf92f22a145f69443443957120ae3bd392cb8):

  • libcvd/2.5.1:
    All packages built successfully! (All logs)

@valgur valgur mentioned this pull request Mar 25, 2024
Copy link
Member

@RubenRBS RubenRBS left a comment

Choose a reason for hiding this comment

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

Thanks! (And to @jwillikers too for the opengl review, I'd have not catch that!)

@RubenRBS RubenRBS self-assigned this Apr 1, 2024
@conan-center-bot conan-center-bot merged commit 6edbc7c into conan-io:master Apr 1, 2024
13 checks passed
yhsng pushed a commit to yhsng/conan-center-index that referenced this pull request Apr 12, 2024
* libcvd: new recipe

* libcvd: OpenGL is required on Windows

* libcvd: tidy conandata.yml

* libcvd: fix Windows build

* libcvd: add ws2_32 system dep

* libcvd: use libglvnd

* libcvd: bump to v2.5.1
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] libCVD
4 participants