ViveTrackerUtilities icon indicating copy to clipboard operation
ViveTrackerUtilities copied to clipboard

DLLnotFound Exception error

Open mr-brooks-dev opened this issue 4 years ago • 2 comments

Hi. I get an error saying "DllNotFoundException: openvr_api " when I try to run your test scene..after installing and tracking doesnt work. I have tried in Unity 2018+2019+2020.

  • I can get tracking to work if I Enable VR compatible in the player settings. but then it will crash when I leave playmode. Where can I find this openVR .dll so I can manually copy it into the build folder?

mr-brooks-dev avatar Mar 29 '21 16:03 mr-brooks-dev

Hi,

If your problem is on build, please check the last lines of readme file. You can either copy the file manually, or update the file CopyOpenVR.cs with a correct path (and the file will be copied automatically everytime you build). Also, please make sure you have modified the SteamVR config files as indicated.

sergiobd avatar Apr 21 '21 08:04 sergiobd

To solve your problems in Editor mode, I suggest you try this:

  1. Import the OpenVR package from package manager
  2. Find the file openvr_api.dll by searching in your project (make sure to include packages folder)
  3. Right click and locate the folder in your file system
  4. Remove the OpenVR packate from the package manager
  5. Copy the openvr_api.dll file and put it besides the openvr_.cs file.

Make sure the file is included when you build your app. Good luck. Please close the issue if this solves your problem.

sergiobd avatar Apr 21 '21 09:04 sergiobd