Update openxrs to fix jsoncpp compilation error (#215)

Update openxrs to get the fix for a cmake error: "requires target
'jsoncpp_interface' that is not in any export set" [1], and update call
to create_space() to take an API change [2] into account.

[1] https://github.com/Ralith/openxrs/issues/148
[2] d8ea5553d5
This commit is contained in:
James Hogan
2025-05-16 20:22:22 +01:00
committed by GitHub
parent f85e6088ce
commit b543a6890e
3 changed files with 6 additions and 7 deletions

4
Cargo.lock generated
View File

@@ -3010,7 +3010,7 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
[[package]]
name = "openxr"
version = "0.19.0"
source = "git+https://github.com/Ralith/openxrs?rev=6c7747aee678048642dc16aad8bab3d6961dce03#6c7747aee678048642dc16aad8bab3d6961dce03"
source = "git+https://github.com/Ralith/openxrs?rev=d0afdd3365bc1e14de28f6a3a21f457e788a702e#d0afdd3365bc1e14de28f6a3a21f457e788a702e"
dependencies = [
"libc",
"libloading",
@@ -3021,7 +3021,7 @@ dependencies = [
[[package]]
name = "openxr-sys"
version = "0.11.0"
source = "git+https://github.com/Ralith/openxrs?rev=6c7747aee678048642dc16aad8bab3d6961dce03#6c7747aee678048642dc16aad8bab3d6961dce03"
source = "git+https://github.com/Ralith/openxrs?rev=d0afdd3365bc1e14de28f6a3a21f457e788a702e#d0afdd3365bc1e14de28f6a3a21f457e788a702e"
dependencies = [
"cmake",
"libc",

View File

@@ -35,7 +35,7 @@ json = { version = "0.12.4", optional = true }
json5 = "0.4.1"
libc = "0.2.155"
log = "0.4.21"
openxr = { git = "https://github.com/Ralith/openxrs", rev = "6c7747aee678048642dc16aad8bab3d6961dce03", features = [
openxr = { git = "https://github.com/Ralith/openxrs", rev = "d0afdd3365bc1e14de28f6a3a21f457e788a702e", features = [
"static",
"mint",
], optional = true }

View File

@@ -299,10 +299,9 @@ impl OpenXrInputSource {
impl OpenXrHand {
pub(super) fn new(xr: &XrState, source: OpenXrHandSource) -> Result<Self, xr::sys::Result> {
let space =
source
.pose
.create_space(xr.session.clone(), xr::Path::NULL, xr::Posef::IDENTITY)?;
let space = source
.pose
.create_space(&xr.session, xr::Path::NULL, xr::Posef::IDENTITY)?;
Ok(Self { source, space })
}