# OpenXR Problem

**URL:** https://discourse.vtk.org/t/openxr-problem/14748
**Category:** Support
**Tags:** code
**Created:** [October 22, 2024, 1:28am UTC](https://discourse.vtk.org/t/openxr-problem/14748 "2024-10-22T01:28:56Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![zist8888](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zist8888/32/3833_2.png) [@zist8888](https://discourse.vtk.org/u/zist8888)
#### Post date: [October 22, 2024, 1:28am UTC](https://discourse.vtk.org/t/openxr-problem/14748/1 "2024-10-22T01:28:56Z")

</div>

I got vtk9.4.0.rc2,compile and get error as this,someone can help! vtk9.3.0 is ok.

“/MANIFESTDEPENDENCY:type=‘win32’ name=‘Microsoft.Windows.Common-Controls’ version=‘6.0.0.0’ publicKeyToken=‘6595b64144ccf1df’ language=‘_’ processorArchitecture='_’” /MANIFEST:embed /OUT:…..\VTK\VTK-9.4.0.rc2\bin\bin\XRRenderEngine.exe @C:\Users\Lenovo\AppData\Local\Temp\XRRenderEngine.exe.18700.8281.jom  
vtkPVXRInterfaceHelper.obj : error LNK2019: 无法解析的外部符号 “\_\_declspec(dllimport) public: static class vtkVRRay \* \_\_cdecl vtkVRRay::SafeDownCast(class vtkObjectBase \*)” (\__imp_?SafeDownCast@vtkVRRay@@SAPEAV1@PEAVvtkObjectBase@@@Z)，该符号在函数 “protected: bool \_\_cdecl vtkPVXRInterfaceHelper::EventCallback(class vtkObject \*,unsigned long,void \*)” (?EventCallback@vtkPVXRInterfaceHelper@@IEAA\_NPEAVvtkObject@@KPEAX@Z) 中被引用  
vtkPVXRInterfaceHelper.obj : error LNK2001: 无法解析的外部符号 vtk\_glad\_glBlitFramebuffer

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [March 3, 2025, 9:25pm UTC](https://discourse.vtk.org/t/openxr-problem/14748/2 "2025-03-03T21:25:17Z")

</div>

I’m not seeing where `XRRenderEngine.exe` comes from. It looks like there might be a missing link to `VTK::RenderingVRModels`?

Cc: @scottwittenburg

---

<div class="post-metadata">

### Author: ![scottwittenburg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scottwittenburg/32/5654_2.png) [@scottwittenburg](https://discourse.vtk.org/u/scottwittenburg)
#### Post date: [March 3, 2025, 10:49pm UTC](https://discourse.vtk.org/t/openxr-problem/14748/3 "2025-03-03T22:49:17Z")

</div>

I’m confused as to what’s going on in that error output. I’m not familiar with XRRenderEngine.exe, if it is a target in VTK, I don’t recall having seen it before. Otherwise, maybe it’s a target in some dependent project?

Also, I see vtkPVXRInterfaceHelper in the output, which only exists in ParaView, so that doesn’t look like just trying to compile vtk9.4.0.rc2.

[@Ben Boeckel](mailto:ben.boeckel@kitware.com) What makes you think there may be a missing link to VTK::RenderingVRModels?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [March 3, 2025, 10:53pm UTC](https://discourse.vtk.org/t/openxr-problem/14748/4 "2025-03-03T22:53:54Z")

</div>

> [@scottwittenburg](#):
>
> What makes you think there may be a missing link to VTK::RenderingVRModels?

This line:

> [@zist8888](#):
>
> vtkPVXRInterfaceHelper.obj : error LNK2019: 无法解析的外部符号 “\_\_declspec(dllimport) public: static class vtkVRRay \* \_\_cdecl vtkVRRay::SafeDownCast(class vtkObjectBase \*)”

is saying that `vtkPVXRInterfaceHelper.obj` (whatever that is…not CMake-generated as it lacks a `.cxx` or something in there) that it can’t find `vtkVRRay` symbols.

---

<div class="post-metadata">

### Author: ![scottwittenburg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scottwittenburg/32/5654_2.png) [@scottwittenburg](https://discourse.vtk.org/u/scottwittenburg)
#### Post date: [March 3, 2025, 11:07pm UTC](https://discourse.vtk.org/t/openxr-problem/14748/5 "2025-03-03T23:07:26Z")

</div>

> > ![](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scottwittenburg/48/5654_2.png)Scott Wittenburg:
> > 
> > What makes you think there may be a missing link to VTK::RenderingVRModels?
> 
> This line:
> 
> > ![](https://discourse.vtk.org/user_avatar/discourse.vtk.org/zist8888/48/3833_2.png)Zist8888:
> > 
> > vtkPVXRInterfaceHelper.obj : error LNK2019: 无法解析的外部符号 “\_\_declspec(dllimport) public: static class vtkVRRay \* \_\_cdecl vtkVRRay::SafeDownCast(class vtkObjectBase \*)”
> 
> is saying that `vtkPVXRInterfaceHelper.obj` (whatever that is…not CMake-generated as it lacks a `.cxx` or something in there) that it can’t find `vtkVRRay` symbols.

Ok, thanks. vtkPVXRInterfaceHelper is a class in the XRInterface plugin. The plugin, indeed, does not declare a direct dependency on VTK::RenderingVRModels, although vtkPVXRInterfaceHelper does use the vtkVRRay class, so maybe it should? I’m not sure how this hasn’t come up before though.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.vtk.org/u/ben.boeckel)
#### Post date: [March 4, 2025, 6:36am UTC](https://discourse.vtk.org/t/openxr-problem/14748/6 "2025-03-04T06:36:38Z")

</div>

> [@scottwittenburg](#):
>
> The plugin, indeed, does not declare a direct dependency on VTK::RenderingVRModels, although vtkPVXRInterfaceHelper does use the vtkVRRay class, so maybe it should? I’m not sure how this hasn’t come up before though.

Yes, that sounds like the solution then. Windows’ linker is a bit more…picky at some things.

---

<div class="post-metadata">

### Author: ![scottwittenburg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scottwittenburg/32/5654_2.png) [@scottwittenburg](https://discourse.vtk.org/u/scottwittenburg)
#### Post date: [March 4, 2025, 5:16pm UTC](https://discourse.vtk.org/t/openxr-problem/14748/7 "2025-03-04T17:16:29Z")

</div>

> > ![](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scottwittenburg/48/5654_2.png)Scott Wittenburg:
> > 
> > The plugin, indeed, does not declare a direct dependency on VTK::RenderingVRModels, although vtkPVXRInterfaceHelper does use the vtkVRRay class, so maybe it should? I’m not sure how this hasn’t come up before though.
> 
> Yes, that sounds like the solution then. Windows’ linker is a bit more…picky at some things.

Ok, thanks Ben 🙂 I’ll make an MR for that today.

---

<div class="post-metadata">

### Author: ![scottwittenburg](https://discourse.vtk.org/user_avatar/discourse.vtk.org/scottwittenburg/32/5654_2.png) [@scottwittenburg](https://discourse.vtk.org/u/scottwittenburg)
#### Post date: [March 5, 2025, 2:15pm UTC](https://discourse.vtk.org/t/openxr-problem/14748/8 "2025-03-05T14:15:21Z")

</div>

I have created a merge request here:

[https://gitlab.kitware.com/paraview/paraview/-/merge\_requests/7214](https://gitlab.kitware.com/paraview/paraview/-/merge_requests/7214)
