TheButlah / ovr_overlay

Rust OpenVR bindings using an up-to-date OpenVR and autocxx
https://docs.rs/ovr_overlay
Other
7 stars 8 forks source link

Unable to build, binding generation for `VR_GetVRInitErrorAsSymbol` fails #25

Open Raphiiko opened 4 months ago

Raphiiko commented 4 months ago

For some reason I cannot seem to build ovr_overlay_sys anymore, as it seems the generation of the binding for VR_GetVRInitErrorAsSymbol fails:

  --- stderr
  thread 'main' panicked at 'Could not autogenerate bindings: ParseError(AutocxxCodegenError(Conversion(DidNotGenerateAnything("vr::VR_GetVRInitErrorAsSymbol"))))', sys\build.rs:11:10
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

The issue seems to go away once I remove generate!("vr::VR_GetVRInitErrorAsSymbol") from lib.rs (along with any of its uses from ovr_overlay), but I'm not quite sure yet why it's failing on this specific method.

I'm not sure what changed either, I don't see any changes to openvr.h that seem like they could be related, and building with older versions of the openvr headers doesn't seem to make a difference.

TheButlah commented 4 months ago

Unfortunately I don't have time to maintain or review issues or PRs atm.

Raphiiko commented 4 months ago

No worries, I can work around the problem just fine for the moment, but it's probably still worth to track the issue.

TheMrGong commented 3 months ago

For anyone who is having this issue, a temporary workaround is to downgrade LLVM to 17.x.x - versions 18.x.x and above causes the issue