美文网首页
如何安装OpenXR运行时(Windows)

如何安装OpenXR运行时(Windows)

作者: 赛非斯 | 来源:发表于2022-01-07 17:38 被阅读0次

1、下载openxr示例代码
https://github.com/KhronosGroup/OpenXR-SDK-Source.git

mkdir build\win64
cd build\win64

cmake -G "Visual Studio [Version Number] Win64" ....

cmake -G "Visual Studio 17" ../..

cmake -G "Visual Studio 17" -A x64 ../..

然后用VS打开build\win64\OPENXR.sln 工程

2、编译会生成可执行文件
C:\Work\github\OpenXR-SDK-Source\build\win64\src\tests\hello_xr\Debug\hello_xr.exe
执行 C:\Work\github\OpenXR-SDK-Source\build\win64\src\tests\hello_xr\Debug\hello_xr.exe -g Vulkan
会提示找不到runtime

image.png
3、安装微软的运行时 https://www.khronos.org/openxr/
image.png
image.png
4、安装成功界面
image.png
重新运行不会出现运行时报错了
image.png
但是缺扩展
image.png

5、安装模拟器
hololens模拟器:
https://docs.microsoft.com/zh-cn/windows/mixed-reality/develop/install-the-tools

image.png
Windows Mixed Reality 模拟器:
使用 Windows Mixed Reality 模拟器 - Mixed Reality | Microsoft Docs image.png

6、我们打开头戴模拟 这个时候再看扩展终于出来了


image.png

7、我们的helloxr终于可以在windows模拟器上运行起来了


105287473378785054.png

相关文章

网友评论

      本文标题:如何安装OpenXR运行时(Windows)

      本文链接:https://www.haomeiwen.com/subject/arojcrtx.html