The issue was seemingly solved by removing dll’s I had in the Unity project’s root folder. However when I build the project I get this error in the build:
nuitrack.TerminateException: NuitrackException (TerminateException): WARNING: Cannot load library module: C:\Program Files\Nuitrack\nuitrack\nuitrack/middleware/NuitrackModule.dll
ERROR: TBB version mismatch: runtime library version is 11100, but the application was compiled with the 11102 version!
I had same version of tbb.dll in the nuitrack install folder, Unity’s editor folder and the project’s root folder. I tried copying the tbb.dll to the build’s root folder as well, which fixed this error but presented another one:
nuitrack.TerminateException: NuitrackException (TerminateException): WARNING: Cannot load library module: C:\Program Files\Nuitrack\nuitrack\nuitrack/middleware/NuitrackModule.dll
at nuitrack.NativeImporter.throwException (nuitrack.NativeImporter+ExceptionType type, System.String message) [0x00055] in <0fa84b5c91c943e190b9d848b3950060>:0
at nuitrack.NativeImporter.handleError (System.IntPtr error) [0x00061] in <0fa84b5c91c943e190b9d848b3950060>:0
at nuitrack.NativeNuitrack.Init (System.String config) [0x0000e] in <0fa84b5c91c943e190b9d848b3950060>:0
at nuitrack.Nuitrack.Init (System.String config, nuitrack.Nuitrack+NuitrackMode mode) [0x00029] in <0fa84b5c91c943e190b9d848b3950060>:0
at NuitrackManager.NuitrackInit () [0x00057] in :0
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)
Also on the PC where the build is, the activation tool does not work. When I try to run it, this error pops up:
The procedure entry point ei_core_read_network_from_memory could not be located in the dynamic link library C:\Program Files\Nuitrack\nuitrack\nuitrack\activation_tool
Oddly enough, I was able to activate nuitrack using one of the samples.
Does anyone have idea how to get Nuitrack (0.35) to work in both editor and build without problems?