KitwareMedical/SlicerVirtualReality

Add MacOS support

jcfr opened this issue · 4 comments

jcfr commented

If anybody would use MacOS for virtual reality and you already have virtual reality capable hardware then post a comment here. Also describe how can you contribute to the effort.

jcfr commented

Support for building the extension was made possible through the following pull requests:

While the extension build, it doesn't provide any integration with XR environment. Enabling OpenXR leads to the following failure when building vtkRenderingOpenXR:

Issue related to "XrGraphicsBindingOpenGL"

Here is the error reported while building the vtkRenderingOpenXR module:

    [ 15%] Building CXX object vtkRenderingOpenXR/CMakeFiles/RenderingOpenXR.dir/vtkOpenXRManagerConnection.cxx.o
  In file included from /D/S/A/VTK/Rendering/OpenXR/vtkOpenXRManagerOpenGLGraphics.cxx:15:
  /D/S/A/VTK/Rendering/OpenXR/vtkOpenXRManagerOpenGLGraphics.h:119:19: error: use of undeclared identifier 'XrGraphicsBindingOpenGL'
    std::shared_ptr<XrGraphicsBindingOpenGL> GraphicsBinding;
                    ^
  /D/S/A/VTK/Rendering/OpenXR/vtkOpenXRManagerOpenGLGraphics.h:49:16: error: cannot initialize return object of type 'vtkObjectBase *' with an rvalue of type 'vtkOpenXRManagerOpenGLGraphics *'
    vtkTypeMacro(vtkOpenXRManagerOpenGLGraphics, vtkOpenXRManagerGraphics);
    ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Closing. We should revisit the macOS support once VTK itself support it.

We need to keep this issue open so that people who are waiting for macOS support can keep monitoring this issue.
Maybe we could add labels etc. to distinguish this feature request from issues.