{"id":4878,"date":"2018-12-03T19:09:10","date_gmt":"2018-12-03T11:09:10","guid":{"rendered":"https:\/\/unitycoder.com\/blog\/?p=4878"},"modified":"2018-12-03T19:09:10","modified_gmt":"2018-12-03T11:09:10","slug":"dllnotfoundexception-libnuitrack-nuitrack-nativenuitrack-init","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2018\/12\/03\/dllnotfoundexception-libnuitrack-nuitrack-nativenuitrack-init\/","title":{"rendered":"DllNotFoundException: libnuitrack &#8211; nuitrack.NativeNuitrack.Init"},"content":{"rendered":"<p><strong><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"4879\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2018\/12\/03\/dllnotfoundexception-libnuitrack-nuitrack-nativenuitrack-init\/nuitrack-missing-dll\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/12\/nuitrack-missing-dll.jpg?fit=474%2C89&amp;ssl=1\" data-orig-size=\"474,89\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"nuitrack-missing-dll\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/12\/nuitrack-missing-dll.jpg?fit=300%2C56&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/12\/nuitrack-missing-dll.jpg?fit=474%2C89&amp;ssl=1\" class=\"alignnone size-full wp-image-4879\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/12\/nuitrack-missing-dll.jpg?resize=474%2C89&#038;ssl=1\" alt=\"\" width=\"474\" height=\"89\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/12\/nuitrack-missing-dll.jpg?w=474&amp;ssl=1 474w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/12\/nuitrack-missing-dll.jpg?resize=300%2C56&amp;ssl=1 300w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/strong><\/p>\n<p>Briefly tested <a href=\"https:\/\/nuitrack.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/nuitrack.com\/<\/a> in unity, and had this error when trying to run examples:<\/p>\n<pre>DllNotFoundException: libnuitrack\r\nnuitrack.NativeNuitrack.Init (System.String config)\r\nnuitrack.Nuitrack.Init (System.String config, NuitrackMode mode)\r\nNuitrackManager.NuitrackInit () (at Assets\/NuitrackSDK\/Nuitrack\/NuitrackManager.cs:218)\r\nNuitrackManager.Awake () (at Assets\/NuitrackSDK\/Nuitrack\/NuitrackManager.cs:117)<\/pre>\n<p>There is a thread about it in nuitrack forums, <a href=\"https:\/\/community.nuitrack.com\/t\/dllnotfoundexception-libnuitrack\/562\/23\" target=\"_blank\" rel=\"noopener\">https:\/\/community.nuitrack.com\/t\/dllnotfoundexception-libnuitrack\/562\/23<\/a><br \/>\nand the solution was that you need to set System PATH correctly (and reboot pc after it).<\/p>\n<p>Noticed the issue with <a href=\"https:\/\/docs.microsoft.com\/en-us\/sysinternals\/downloads\/procmon\" target=\"_blank\" rel=\"noopener\">Process Monitor<\/a>, Unity was not looking from the right folder (even though i had added ..bin\\ folder in the USER variables PATH)<\/p>\n<p><strong>Solution:<\/strong><br \/>\n&#8211; Download nuitrack SDK (64bit) http:\/\/download.3divi.com\/Nuitrack\/platforms\/nuitrack-win64.zip<br \/>\n&#8211; Unzip<br \/>\n&#8211; Install OpenNI-Win64-1.5.7-Dev.msi<br \/>\n&#8211; Edit windows environment variables (type path in start menu). NOTE: Modify SYSTEM variables below (not the USER variables above)<br \/>\n&#8211; Add NUITRACK_HOME variable and set path to your folder, for example:\u00a0 C:\\Users\\username\\Downloads\\nuitrack-win64\\nuitrack<br \/>\n&#8211; Modify PATH variable, add new item, for example:\u00a0 C:\\Users\\username\\Downloads\\nuitrack-win64\\nuitrack\\bin<br \/>\n&#8211; That is the folder containing the missing dll<br \/>\n&#8211; Reboot your pc, and test example scenes in unity, should have no more dll error<\/p>\n<p>&nbsp;<\/p>\n<p><strong>References:<\/strong><br \/>\n&#8211; Nuitrack installation instructions: <a href=\"http:\/\/download.3divi.com\/Nuitrack\/doc\/Installation_page.html\" target=\"_blank\" rel=\"noopener\">http:\/\/download.3divi.com\/Nuitrack\/doc\/Installation_page.html<\/a><br \/>\n&#8211; Nuitrack unitypackage: <a href=\"https:\/\/nuitrack.com\" target=\"_blank\" rel=\"noopener\">https:\/\/nuitrack.com<\/a> (scroll down the page, see &#8220;Unity SDK &amp; Samples&#8221;, click download)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":4879,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"DllNotFoundException: libnuitrack - nuitrack.NativeNuitrack.Init","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[420,3],"tags":[840,1073,1072,1074,715],"class_list":["post-4878","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-unity3d","tag-dll","tag-missing","tag-nuitrack","tag-realsense","tag-sdk"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2018\/12\/nuitrack-missing-dll.jpg?fit=474%2C89&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-1gG","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4878","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=4878"}],"version-history":[{"count":1,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4878\/revisions"}],"predecessor-version":[{"id":4880,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/4878\/revisions\/4880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/4879"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=4878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=4878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=4878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}