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 } // --------------------------------------------------------------------------