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

[slicer-5.6-v9.2.20230607-1ff325c54-2] [Backport MR-10814] OpenXRRemoting: Support building against Holographic.Remoting.OpenXr >= 2.9.3 #54

Conversation

jcfr
Copy link
Member

@jcfr jcfr commented Jan 11, 2024

These changes correspond to the ones integrated in branch slicer-v9.2.20230607-1ff325c54-2 through #53

…hic.Remoting.OpenXr >= 2.9.3

Starting with Microsoft.Holographic.Remoting.OpenXr 2.9.3, the struct
`XrRemotingPreferredGraphicsAdapterMSFT` is defined in `openxr_msft_holographic_remoting.h`
and it requires the type LUID to be defined.

Since LUID is defined in `windows.h` (see `OpenXR-SDK-Source/specification/registry/xr.xml`),
we include the corresponding VTK header and fixes the following error reported
when building the vtkRenderingOpenXRRemoting module:

```
C:\path\to\\OpenXRRemoting-install\build\native\include\openxr\openxr_msft_holographic_remoting.h(405,14): error
C3646: 'adapterLuid': unknown override specifier
```

Merge-request: vtk/vtk!10814
@jcfr jcfr merged commit d4be5ea into Slicer:slicer-5.6-v9.2.20230607-1ff325c54-2 Jan 11, 2024
@jcfr jcfr deleted the slicer-5.6-v9.2.20230607-1ff325c54-2_support-openxrremoting-2.9.3 branch January 11, 2024 10:51
@jcfr
Copy link
Member Author

jcfr commented Jan 11, 2024

Corresponding changes have been fetched in the VTK checkout found in the Stable release build tree on

  • metroplex (Linux)
  • computron (macOS)
  • overload (Windows).

For example, here is the output of the git pull on computron

$ git pull origin slicer-5.6-v9.2.20230607-1ff325c54-2 
[...]
From https://github.com/slicer/VTK
 * branch                  slicer-5.6-v9.2.20230607-1ff325c54-2 -> FETCH_HEAD
   cf35a0326e..d4be5ea254  slicer-5.6-v9.2.20230607-1ff325c54-2 -> origin/slicer-5.6-v9.2.20230607-1ff325c54-2
Updating cf35a0326e..d4be5ea254
Fast-forward
 Rendering/OpenXRRemoting/vtkOpenXRManagerRemoteConnection.cxx | 7 +++++++
 1 file changed, 7 insertions(+)

jcfr added a commit to jcfr/SlicerVirtualReality that referenced this pull request Jan 11, 2024
This enhancement enables building the SlicerVirtualReality extension against
the latest version (2.9.3) of Microsoft.Holographic.Remoting.OpenXr. This aligns
SlicerVirtualReality with the corresponding version of the "Holographic Remoting
Player" available on the Microsoft Store.

The update relies on VTK changes integrated into the upstream VTK project via
vtk/vtk!10814. Additionally, Slicer/VTK fork branches, namely Slicer/VTK#53
for SlicerPreview and Slicer/VTK#54 for SlicerStable, have been synchronized with
these changes.

For SlicerPreview, changes have been integrated in Slicer through Slicer/Slicer#7534.
In the case of SlicerStable, the updated VTK fork has been manually checked out
on the relevant build machines to incorporate the necessary adjustments.
jcfr added a commit to KitwareMedical/SlicerVirtualReality that referenced this pull request Jan 11, 2024
This enhancement enables building the SlicerVirtualReality extension against
the latest version (2.9.3) of Microsoft.Holographic.Remoting.OpenXr. This aligns
SlicerVirtualReality with the corresponding version of the "Holographic Remoting
Player" available on the Microsoft Store.

The update relies on VTK changes integrated into the upstream VTK project via
vtk/vtk!10814. Additionally, Slicer/VTK fork branches, namely Slicer/VTK#53
for SlicerPreview and Slicer/VTK#54 for SlicerStable, have been synchronized with
these changes.

For SlicerPreview, changes have been integrated in Slicer through Slicer/Slicer#7534.
In the case of SlicerStable, the updated VTK fork has been manually checked out
on the relevant build machines to incorporate the necessary adjustments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant