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

FindPackage SFML fails #8503

Closed
ghost opened this issue Oct 8, 2019 · 4 comments
Closed

FindPackage SFML fails #8503

ghost opened this issue Oct 8, 2019 · 4 comments
Assignees
Labels
category:port-bug The issue is with a library, which is something the port should already support

Comments

@ghost
Copy link

ghost commented Oct 8, 2019

Describe the bug
A clear and concise description of what the bug is.
After I've install SFML

find_package(SFML CONFIG REQUIRED)

fails with

find_package(SFML) called with no component

Environment

  • OS: Ubuntu 19.04
  • Compiler: revision GCC 8.3

To Reproduce
Steps to reproduce the behavior:

  1. ./vcpkg install sfml
  2. See error
    Repro code when

Expected behavior
A clear and concise description of what you expected to happen.

Failure logs
-(please attached failure logs)

Additional context
Add any other context about the problem here.

@JackBoosY JackBoosY self-assigned this Oct 8, 2019
@JackBoosY
Copy link
Contributor

According to this document, I think we need to add components to find_package.
We should add a usage.

@JackBoosY JackBoosY added the category:port-bug The issue is with a library, which is something the port should already support label Oct 9, 2019
@JackBoosY
Copy link
Contributor

Hi @giellamoswhard, thanks for reporting this issue.
I've added usage with sfml. Please update vcpkg and follow the usage.

Thanks.

@atimholt
Copy link

atimholt commented Nov 29, 2020

I know this is closed, but I ran into the same problem today (2020-11-28) after git pull-ing, vcpkg\bootstrap.bat\-ing, and vcpkg upgrade-ing. Usually, to find usage information, I run vcpkg install [port] again and read its output, which did not return the new usage information.

If there is some way to access package usage information from the command line—besides navigating to VCPKG_ROOT and Get-Content/cat-ing the usage file—this is not indicated anywhere in the CLI usage information output (i.e. the output of the commands vcpkg [nothing/anything that doesn't form an expected command line invoke], and vcpkg help [topic]). Is manual exploration of VCPKG_ROOT the intended method of learning about package metadata? It's a bit onerous.

I'd have opened a separate issue, but I'm not sure if it's a matter of inadequate documentation, or if it would be a new feature request to enhance the CLI with the ability to return meta-info about packages. I might open one anyway if this comment is never replied to.

@JackBoosY
Copy link
Contributor

@atimholt Please open a new issue to report that, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:port-bug The issue is with a library, which is something the port should already support
Projects
None yet
Development

No branches or pull requests

2 participants