vtkRenderingOpenXRRemotingCxxTests

Just wanted to test out https://www.kitware.com/stream-vtk-to-the-hololens-2/ workflow on my ms hololens 2 but some key steps are missing from the blog. VTK::RenderingOpenXRRemoting - VTK documentation appears to have more detailed steps. Using the following cmake option on vtk from https://gitlab.kitware.com/vtk/vtk.git, I was able to get it compiled using VS 2022 on windows 10

cmake …\vtk -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\t\vtk -DVTK_GROUP_ENABLE_Rendering:STRING=YES -DVTK_MODULE_ENABLE_VTK_RenderingOpenXRRemoting:STRING=YES -DOpenXR_DIR=C:\t\OpenXR-1.1.38\cmake -DOpenXRRemoting_BIN_DIR=C:/b/vtk-hololens2/MixedReality-HolographicRemoting-Samples-main/remote_openxr/desktop/bin/Release -DOpenXRRemoting_INCLUDE_DIR=C:/b/vtk-hololens2/MixedReality-HolographicRemoting-Samples-main/remote_openxr/desktop/packages/Microsoft.Holographic.Remoting.OpenXr.2.9.1/build/native/include/openxr -DVTK_BUILD_EXAMPLES:BOOL=ON

I found vtkRenderingOpenXRRemoting-9.3.dll with the build. However, vtkRenderingOpenXRRemotingCxxTests.exe is no where to be found. VTK documentation mentioned to use run

vtkRenderingOpenXRRemotingCxxTests.exe “TestOpenXRRemotingInitialization” -playerIP XX.XX.XX.XX

in the test between the desktop and MS HoloLens2.

Where can I find a more detailed instructions on duplicating what was published on the blog? Is Lucas Gandel’s VTK test-dev code available to download ?

thanks
-simon

Hello @simonmssu,

I don’t see in your command line where you enable vtk testing that’s probably why you don’t have the vtkRenderingOpenXRRemotingCxxTests executable

Where can I find a more detailed instructions on duplicating what was published on the blog? Is Lucas Gandel’s VTK test-dev code available to download ?

I don’t know another location than this one : https://gitlab.kitware.com/vtk/vtk/-/tree/master/Rendering/OpenXRRemoting?ref_type=heads#vtkrenderingopenxrremoting

but maybe @LucasGandel can help you for this point :slightly_smiling_face:

Hello @Lucas_Givord ,

thank you for the suggestions. I will enable vtk testing and see what I get.

thanks
-simon

yes.

adding vtk test to the cmake configuration is building the necessary vtkRenderingOpenXRRemotingCxxTests.exe file

thanks
-simon

cmake …\vtk -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:\t\vtk -DVTK_GROUP_ENABLE_Rendering:STRING=YES -DVTK_MODULE_ENABLE_VTK_RenderingOpenXRRemoting:STRING=YES -DOpenXR_DIR=C:\t\OpenXR-1.1.38\cmake -DOpenXRRemoting_BIN_DIR=C:/b/vtk-hololens2/MixedReality-HolographicRemoting-Samples-main/remote_openxr/desktop/bin/Release -DOpenXRRemoting_INCLUDE_DIR=C:/b/vtk-hololens2/MixedReality-HolographicRemoting-Samples-main/remote_openxr/desktop/packages/Microsoft.Holographic.Remoting.OpenXr.2.9.1/build/native/include/openxr -DVTK_BUILD_EXAMPLES:BOOL=ON -DVTK_BUILD_TESTING:STRING=ON

1 Like