# Build error PV5.9 with OpenVR

**URL:** https://discourse.paraview.org/t/build-error-pv5-9-with-openvr/6465
**Category:** ParaView Support
**Created:** [February 14, 2021, 11:01pm UTC](https://discourse.paraview.org/t/build-error-pv5-9-with-openvr/6465 "2021-02-14T23:01:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lyz](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@lyz](https://discourse.paraview.org/u/lyz)
#### Post date: [February 14, 2021, 11:01pm UTC](https://discourse.paraview.org/t/build-error-pv5-9-with-openvr/6465/1 "2021-02-14T23:01:53Z")

</div>

I build PV5.9 with OpenVR(1.14.15) on windows 10 using vs2017(x64), however I got error like this:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/f/fceb8a4d5070dd2d8d0c6c11beebe7c037da4188.png)

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [February 15, 2021, 3:11pm UTC](https://discourse.paraview.org/t/build-error-pv5-9-with-openvr/6465/2 "2021-02-15T15:11:57Z")

</div>

I don’t know if `FindOpenVR.cmake` is failing or if there’s a version mismatch. Could you show the values of `OpenVR_LIBRARY` and `OpenVR_INCLUDE_DIR` in the build’s `CMakeCache.txt` file?

Cc: @martink

---

<div class="post-metadata">

### Author: ![martink](https://discourse.paraview.org/user_avatar/discourse.paraview.org/martink/32/2082_2.png) [@martink](https://discourse.paraview.org/u/martink)
#### Post date: [February 15, 2021, 3:37pm UTC](https://discourse.paraview.org/t/build-error-pv5-9-with-openvr/6465/3 "2021-02-15T15:37:42Z")

</div>

Are you building shared? I think it only works with shared builds due to some issues in OpenVR and how they handle exports.

---

<div class="post-metadata">

### Author: ![lyz](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/l/e47774/32.png) [@lyz](https://discourse.paraview.org/u/lyz)
#### Post date: [February 15, 2021, 11:42pm UTC](https://discourse.paraview.org/t/build-error-pv5-9-with-openvr/6465/4 "2021-02-15T23:42:35Z")

</div>

Yes, I use static OpenVR library got the error. When I using shared library, it works.  
Thank you!
