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

[vcpkg] configure failed because 'Could not find a package configuration file provided by "libSRTP"' #1093

Closed
vipcxj opened this issue Jan 15, 2024 · 1 comment

Comments

@vipcxj
Copy link

vipcxj commented Jan 15, 2024

This is my vcpkg.json

{
  "dependencies": [
    "ffmpeg",
    "libdatachannel",
    "poco",
    "socket-io-client"
  ]
}

This is my CMakePresets.json

{
    "version": 3,
    "configurePresets": [
        {
            "name": "default",
            "binaryDir": "${sourceDir}/build",
            "cacheVariables": {
                "CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
            }
        }
    ]
}

When I configure, errr raised:

  Could not find a package configuration file provided by "libSRTP" with any
  of the following names:

    libSRTPConfig.cmake
    libsrtp-config.cmake

  Add the installation prefix of "libSRTP" to CMAKE_PREFIX_PATH or set
  "libSRTP_DIR" to a directory containing one of the above files.  If
  "libSRTP" provides a separate development package or SDK, be sure it has
  been installed.

If I change vcpkg.json to:

{
  "dependencies": [
    "ffmpeg",
    {
      "name": "libdatachannel",
      "features": [
        "srtp"
      ]
    },
    "poco",
    "socket-io-client"
  ]
}

This error raised:

CMake Error at /home/ps/workspace/projects/vcpkg/scripts/buildsystems/vcpkg.cmake:598 (_add_executable):
  Target "demo" links to target "unofficial::usrsctp::usrsctp" but the target
  was not found.  Perhaps a find_package() call is missing for an IMPORTED
  target, or an ALIAS target is missing?

I think this issue is caused by pr#35618

@vipcxj
Copy link
Author

vipcxj commented Jan 15, 2024

It seems that I should raise the issue in vcpkg, so close it, The new issue is here

@vipcxj vipcxj closed this as completed Jan 15, 2024
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

No branches or pull requests

1 participant