How to build VTK and OpenVR locally?

I you just want to show a mesh in your VR HMD, you can use ParaView for that without any programming.