Set NuiTrack_LIBRARIES and NuiTrack_INCLUDE_DIR on Windows 10

Hello there,

I am new to Nuitrack, and trying to build samples, but got below error, and couldn’t find guides online, anyone can tell me what values should be set to NuiTrack_LIBRARIES and NuiTrack_INCLUDE_DIR?

[cmake] CMake Error at C:/Program Files/CMake/share/cmake-3.23/Modules/FindPackageHandleStandardArgs.cmake:230 (message):

[cmake] Could NOT find NuiTrack (missing: NuiTrack_LIBRARIES NuiTrack_INCLUDE_DIR)

Thanks,

Yuan

Hi @ou.yuan,

You should set:
set(NUITRACK_INCLUDE_PATH ${CMAKE_CURRENT_LIST_DIR}/../../Nuitrack/include ${CMAKE_CURRENT_LIST_DIR}/../../Nuitrack/include/middleware) and
set(NUITRACK_LIBRARY_PATH ${CMAKE_CURRENT_LIST_DIR}/../../Nuitrack/lib/${PLATFORM_DIR})
Take a look at this example.

Thanks for your help @a.bragin

You are welcome @ou.yuan
Do you have other questions I can help you with?

thanks @a.bragin

Currently, I have the below issue, it is holding me back for a few days. Could you please shed light on it?

Here is the samples I am trying to compile.


[main] Building folder: Gesture clean

[build] Starting build

[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/realsense/NuiTrackSDKSample-master/sample/Gesture/build --config Debug --target clean -j 10 --

[build] Build finished with exit code 0

[main] Building folder: Gesture

[build] Starting build

[proc] Executing command: "C:\Program Files\CMake\bin\cmake.EXE" --build c:/realsense/NuiTrackSDKSample-master/sample/Gesture/build --config Debug --target all -j 10 --

[build] [ 33%] Building CXX object CMakeFiles/Gesture.dir/nuitrack.cpp.obj

[build] [ 66%] Building CXX object CMakeFiles/Gesture.dir/main.cpp.obj

[build] [100%] Linking CXX executable Gesture.exe

[build] CMakeFiles\Gesture.dir/objects.a(nuitrack.cpp.obj): In function `tdv::nuitrack::ExceptionTranslator::handle(tdv::nuitrack::nuitrack_error*)':

[build] C:/realsense/github/nuitracksdk/Nuitrack/include/nuitrack/utils/ExceptionTranslator.h:76: undefined reference to `__imp_nuitrack_GetErrorType'

[build] C:/realsense/github/nuitracksdk/Nuitrack/include/nuitrack/utils/ExceptionTranslator.h:78: undefined reference to `__imp_nuitrack_GetErrorMessage'

[build] C:/realsense/github/nuitracksdk/Nuitrack/include/nuitrack/utils/ExceptionTranslator.h:81: undefined reference to `__imp_nuitrack_DestroyError'

[build] CMakeFiles\Gesture.dir/objects.a(nuitrack.cpp.obj): In function `tdv::nuitrack::RGBFrame::RGBFrame(ColorSensorData*)':

[build] C:/realsense/github/nuitracksdk/Nuitrack/include/nuitrack/types/RGBFrame.h:23: undefined reference to `__imp_nuitrack_AddColorSensorDataRef'

[build] CMakeFiles\Gesture.dir/objects.a(nuitrack.cpp.obj): In function `tdv::nuitrack::RGBFrame::~RGBFrame()':

[build] C:/realsense/github/nuitracksdk/Nuitrack/include/nuitrack/types/RGBFrame.h:28: undefined reference to `__imp_nuitrack_DestroyColorSensorData'

[build] CMakeFiles\Gesture.dir/objects.a(nuitrack.cpp.obj): In function `tdv::nuitrack::RGBFrame::getRows() const':

[build] C:/realsense/github/nuitracksdk/Nuitrack/include/nuitrack/types/RGBFrame.h:36: undefined reference to `__imp_nuitrack_GetColorFrameRows'

[build] CMakeFiles\Gesture.dir/objects.a(nuitrack.cpp.obj): In function `tdv::nuitrack::RGBFrame::getCols() const':

[build] C:/realsense/github/nuitracksdk/Nuitrack/include/nuitrack/types/RGBFrame.h:44: undefined reference to `__imp_nuitrack_GetColorFrameCols'

[build] CMakeFiles\Gesture.dir/objects.a(nuitrack.cpp.obj): In function `tdv::nuitrack::RGBFrame::getID() const':

[build] C:/realsense/github/nuitracksdk/Nuitrack/include/nuitrack/types/RGBFrame.h:52: undefined reference to `__imp_nuitrack_GetColorFrameID'

[build] CMakeFiles\Gesture.dir/objects.a(nuitrack.cpp.obj): In function `tdv::nuitrack::RGBFrame::getData() const':

[build] C:/realsense/github/nuitracksdk/Nuitrack/include/nuitrack/types/RGBFrame.h:60: undefined reference to `__imp_nuitrack_GetColorFrameData'

[build] CMakeFiles\Gesture.dir/objects.a(nuitrack.cpp.obj): In function `tdv::nuitrack::RGBFrame::getTimestamp() const':

Hi @ou.yuan

Answered you here