ETH3D / badslam

Bundle Adjusted Direct RGB-D SLAM
BSD 3-Clause "New" or "Revised" License
695 stars 114 forks source link

Question about using Azure Kinect SDK with CMake #61

Open AreteQin opened 3 years ago

AreteQin commented 3 years ago

Hello there!

Thank you for sharing this excellent SLAM system with us first!

While I was trying to using BAD-SLAM with Azure Kinect on Ubuntu 1804, I don't know why, but the CMake could not find the packages k4a and k4arecord.

I built the Azure Kinect SDK from source code, and I can open Azure Kinect now.

I tried to add the binary files of SDK to /etc/bash.bashrc and ~/.bashrc like the following commands

sudo gedit /etc/bash.bashrc

K4D

K4D_PATH=$K4D_PATH:/home/arete/Desktop/Azure-Kinect-Sensor-SDK1.2/build/bin

export K4D_PATH

sudo gedit ~/.bashrc

K4D

export CLASS_PATH=/home/arete/Desktop/Azure-Kinect-Sensor-SDK1.2/build/bin

But both methods didn't work. I don't know what should I do. Could anyone please give me some hints?

Thanks in advance!

puzzlepaint commented 3 years ago

When using the binary packages, did you install the package(s) ending with -dev as well? Only those seem to contain the CMake files.

In the case of installing from source, also either the CMake files need to be installed to a location where CMake looks for them, or CMake needs to be told where to search for them when invoking it. Not sure which variable(s) exactly need to be set for K4A.