From fa05d5412be20351a6da6aa4a7f2422dff522cea Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Thu, 11 Jan 2024 16:35:52 -0500 Subject: [PATCH] COMP: Fix build with OpenXR and OpenXRRemoting support disabled --- VirtualReality/Widgets/qMRMLVirtualRealityView.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/VirtualReality/Widgets/qMRMLVirtualRealityView.cxx b/VirtualReality/Widgets/qMRMLVirtualRealityView.cxx index 6509916..5cf3751 100644 --- a/VirtualReality/Widgets/qMRMLVirtualRealityView.cxx +++ b/VirtualReality/Widgets/qMRMLVirtualRealityView.cxx @@ -96,6 +96,7 @@ #if defined(SlicerVirtualReality_HAS_OPENXRREMOTING_SUPPORT) // VTK Rendering/OpenXRRemoting includes +#include #include #endif @@ -484,7 +485,11 @@ bool qMRMLVirtualRealityViewPrivate::currentXRRuntimeRemotingEnabled() const // -------------------------------------------------------------------------- std::string qMRMLVirtualRealityViewPrivate::currentXRRuntimeRemotingIPAddress() const { +#if defined(SlicerVirtualReality_HAS_OPENXRREMOTING_SUPPORT) return vtkOpenXRManager::GetInstance().GetConnectionStrategy()->GetIPAddress(); +#else + return std::string(); +#endif } // --------------------------------------------------------------------------