-
Notifications
You must be signed in to change notification settings - Fork 85
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
cmake in sniper fails to locate libogg and libvorbis #735
Comments
Revert once resolved: ValveSoftware/steam-runtime#735
Maybe this is related - xiph/vorbis#69 - And if so, I suppose that means it won't be fixed until SLR is newer than Debian 11. I guess we'll need to add our own FindOgg.cmake and FindVorbis.cmake |
Revert once resolved: ValveSoftware/steam-runtime#735
Revert once resolved: ValveSoftware/steam-runtime#735
Revert once resolved: ValveSoftware/steam-runtime#735
Likely related - xiph/ogg#82 |
https://gitlab.steamos.cloud/steamrt/sniper/sdk/-/blob/steamrt/sniper/README.md https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/blob/main/docs/slr-for-game-developers.md - Revert to clang-11 - Don't install system libs that won't be provided to users in the SLR - Use system libs where possible - Update Dockerfile to match CI pipeline - [temp] Manually find Ogg/Vorbis when using system libs - revert once resolved: ValveSoftware/steam-runtime#735 - fix rpath for build - issue using sdl from steam-runtime: ValveSoftware/steam-runtime#736 - set fpic for all targets - Don't use system ogg/vorbis ValveSoftware/steam-runtime#735 Signed-off-by: Michael Pollind <[email protected]> Co-authored-by: Gelmo <[email protected]>
https://gitlab.steamos.cloud/steamrt/sniper/sdk/-/blob/steamrt/sniper/README.md https://gitlab.steamos.cloud/steamrt/steam-runtime-tools/-/blob/main/docs/slr-for-game-developers.md - Revert to clang-11 - Don't install system libs that won't be provided to users in the SLR - Use system libs where possible - Update Dockerfile to match CI pipeline - [temp] Manually find Ogg/Vorbis when using system libs - revert once resolved: ValveSoftware/steam-runtime#735 - fix rpath for build - issue using sdl from steam-runtime: ValveSoftware/steam-runtime#736 - set fpic for all targets - Don't use system ogg/vorbis ValveSoftware/steam-runtime#735 Signed-off-by: Michael Pollind <[email protected]> Co-authored-by: Gelmo <[email protected]>
The versions of libogg and libvorbis in sniper are correctly installed, but because they were built with Autotools, they didn't generate CMake-specific metadata describing how to find them. For the Steam Runtime environment, please locate these libraries using pkg-config, which has cross-build-system metadata discovery that can be used from Autotools, CMake, Meson and probably others. The versions of libogg and libvorbis in sniper do provide pkg-config metadata. https://cmake.org/cmake/help/latest/module/FindPkgConfig.html suggests that A few libraries (like SDL and dbus) generate CMake-specific metadata even when they were built with some other build system, but this is not universal and cannot be relied on: it requires the maintainer of every library to write CMake-specific build system code, even if they do not use or recommend CMake themselves. |
Your system information
registry.gitlab.steamos.cloud/steamrt/sniper/sdk:latest
Please describe your issue in as much detail as possible:
We are building our game in the Sniper container per the documentation at GitLab. We have Cmake find several packages, for example:
However, this does not work for ogg or vorbis:
When browsing the Sniper image, we see that vorbis is missing as well.
The text was updated successfully, but these errors were encountered: