Azure-Kinect-Sensor-SDK icon indicating copy to clipboard operation
Azure-Kinect-Sensor-SDK copied to clipboard

How to link k4a.lib in windows without using Nuget?

Open weizixiu opened this issue 1 year ago • 0 comments

Hello! I am a junior programmer. When I link the k4a.lib, it reports a error. There is the commands as follows.

E:\software\msys64\mingw64\bin\g++.exe -fdiagnostics-color=always -g E:\project\cpp_project\human_body1\main.cpp -I "C:\Program Files\Azure Kinect SDK v1.4.1\sdk\include" "C:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\x86\release\lib" -o E:\project\cpp_project\human_body1\main.exe
E:/software/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.1.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find C:\Program Files\Azure Kinect SDK v1.4.1\sdk\windows-desktop\x86\release\lib: Permission denied
collect2.exe: error: ld returned 1 exit status

So, how should i resolve this?

weizixiu avatar Mar 01 '23 14:03 weizixiu