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

meson can't find openvr via pkg-config #752

Open
colemickens opened this issue Jan 18, 2023 · 4 comments
Open

meson can't find openvr via pkg-config #752

colemickens opened this issue Jan 18, 2023 · 4 comments

Comments

@colemickens
Copy link

Hi,

I'm working with nixpkgs, trying to stay ahead of gamescope releases so I can stage other things (for example, we need to package openvr sdk, newer sdl2, etc for unreleased gamescope).

I'm noticing now, even if I build openvr at the tip of tree with fixed build, gamescope's build process fails to find it.

Is it possible that the dep name is wrong? I don't see openvr_api occur in the openvr CMakeLists for example

@colemickens
Copy link
Author

It also sort of looks like maybe references to the direct subproject files were added. If I try to patch this myself, then I hit:

│../src/vr_session.hpp:10:10: fatal error: ../subprojects/openvr/headers/openvr.h: No such file or directory                                                                         │
│   10 | #include "../subprojects/openvr/headers/openvr.h"                                                                                                                           │
│      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~     

@colemickens
Copy link
Author

I have a couple of patches that get the package building for me, can't test VR e2e right now though:

 postPatch = ''
    sed -i "s/dependency('openvr_api',/dependency('openvr',/g" 'meson.build'
    sed -i 's|"../subprojects/openvr/headers/openvr.h"|<openvr.h>|g' src/vr_session.hpp
  '';

@Scrumplex
Copy link

I think I fixed this in these PRs: #811 #813

@Scrumplex
Copy link

I was also working on preparing for an update in Nixpkgs here: NixOS/nixpkgs#219548

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

2 participants