Dec
3
2018

DllNotFoundException: libnuitrack – nuitrack.NativeNuitrack.Init

Briefly tested https://nuitrack.com/ in unity, and had this error when trying to run examples:

DllNotFoundException: libnuitrack
nuitrack.NativeNuitrack.Init (System.String config)
nuitrack.Nuitrack.Init (System.String config, NuitrackMode mode)
NuitrackManager.NuitrackInit () (at Assets/NuitrackSDK/Nuitrack/NuitrackManager.cs:218)
NuitrackManager.Awake () (at Assets/NuitrackSDK/Nuitrack/NuitrackManager.cs:117)

There is a thread about it in nuitrack forums, https://community.nuitrack.com/t/dllnotfoundexception-libnuitrack/562/23
and the solution was that you need to set System PATH correctly (and reboot pc after it).

Noticed the issue with Process Monitor, Unity was not looking from the right folder (even though i had added ..bin\ folder in the USER variables PATH)

Solution:
– Download nuitrack SDK (64bit) http://download.3divi.com/Nuitrack/platforms/nuitrack-win64.zip
– Unzip
– Install OpenNI-Win64-1.5.7-Dev.msi
– Edit windows environment variables (type path in start menu). NOTE: Modify SYSTEM variables below (not the USER variables above)
– Add NUITRACK_HOME variable and set path to your folder, for example:  C:\Users\username\Downloads\nuitrack-win64\nuitrack
– Modify PATH variable, add new item, for example:  C:\Users\username\Downloads\nuitrack-win64\nuitrack\bin
– That is the folder containing the missing dll
– Reboot your pc, and test example scenes in unity, should have no more dll error

 

References:
– Nuitrack installation instructions: http://download.3divi.com/Nuitrack/doc/Installation_page.html
– Nuitrack unitypackage: https://nuitrack.com (scroll down the page, see “Unity SDK & Samples”, click download)


3 Comments + Add Comment

  • actually the easy fix is to just install normally following install instructions, and THEN reboot or relogin (so that the env. variable gets set automatically)

    • What do you mean by Re-login? relogin the whole computer or just reboot the software?

      • yes i meant sign-out from windows and then back (or reboot computer)

Leave a comment

Connect

Twitter View LinkedIn profile Youtube Youtube Join Discord Twitch Instagram

UnityLauncherPro

Get UnityLauncherPRO and work faster with Unity Projects!
*free unity hub alternative

@unitycoder_com

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.