[Solved] Unable to use nuitrack samples

nuitrack_console_sample/src/main.cpp error!

I’ve just gotten started with the NuiTrack SDK and am having issues using the provided samples. When attempting to use the samples I recieve the runtime error:

Usage: nuitrack_console_sample [path/to/nuitrack.config]
Configuration file ( …/…/nuitrack/data/nuitrack.config ) error: (1): expected value
Can not initialize Nuitrack (ExceptionType: 3)

In addition, too many warnings in nuitrack_console_sample/src/main.cpp

And I added one line to the sample code to resolve the link error.
#pragma comment(lib, “nuitrack.lib”)

My environment:

Win10, 64bit
Intel realsense D435

editor : visual studio 2019 C++

Hi devLupin,

Sorry for a late reply.

Did you change nuitrack.config? If yes, try to run Nuitrack with the default settings in nuitrack.config.

1 Like

Thank you.

My mistake. And now, It’s solved.

Hi devLupin

I seem to be getting a very similar error when I try to run the nuitrack_csharp_sample. Can you tell me what changes you made when you solved the issue?

Nuitrack Runtime version : 0.35.6
Cmake : 3.20.3
Microsoft Visual Studio 16 2019 : version: 16.10.2
License Type: Nuitrack AI (Perpetual License)
OS: Windows 10
Hardware: Intel RealSense Depth Camera D435

Here is the error.