如何安装OpenXR运行时(Windows)

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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容