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)
Related Posts
3 Comments + Add Comment
Leave a comment to mgear
Recent posts
- UnityHub: Enable built-in Login Dialog (no more browser login/logout issues!)
- Use TikTok-TTS in Unity (with WebRequest)
- Create Scene Thumbnail Image using OnSceneSaved & OnPreviewGUI
- webgl+javascript TTS
- Using Moonsharp (LUA) + Unity Webgl
- Using 3D gameobject prefabs with Unity Tilemap + NavMesh Surface
- Custom Unity Hub Project Template Preview Image/Video (using HTML+CSS in package description)
- Check if point is inside polygon 2D (using line intersection)
- UnityHub: Enable Create Project Button (without having to select Cloud Organization)
- UI: Make Tooltip background fit Text content length
- Pong-Wars in Unity
- Install Android SDK+JDK+NDK for Unity (without AndroidStudio or Unity Hub)
Recent Comments
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
- Vector3 maths for dummies! on
- [Asset Store] Mobile Paint *now free on
- Scorched Earth Terrain (wip) on
- UI Text TypeWriter Effect [Script] on
- [Asset Store] Point Cloud Viewer & Tools on
- [Asset Store] Point Cloud Viewer & Tools on
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)