Open anastasiabolotnikova opened 4 years ago
I haven't experienced this issue with CMake, but I was facing issues with k4a-tools
having a conflicting version with the libraries needed for this ROS driver, which is addressed in your reproduction steps.
Rather than downgrading k4a-tools
and preventing its update with apt, I've found that I you can get by without using k4a-tools
at all (at least in my use case). So just installing the Kinect Body Tracking SDK with sudo apt install libk4abt1.0-dev
installs the correct libraries for use with this ROS wrapper. So steps 1 and 4 in your reproduction list could be eliminated.
That helps a lot! Thanks.
After having spent hours trying to understand what the problem could be, finally I've found this solution and solved it immediately. Thanks a lot!!
Good job, I have the same problem, that helps a lot!!!! Thank you .
Running
catkin_make
to buildAzure_Kinect_ROS_Driver
results in the following CMake error:Looking into the file that seems to cause the problem
cat /usr/lib/cmake/k4abt/k4abtConfig.cmake
I see indeed only 2 components in the version number:Changing this file manually to include 3 version number components:
fixes the problem and
Azure_Kinect_ROS_Driver
can be built successfully withcatkin_make
.To Reproduce
k4a-tools
package:sudo apt install k4a-tools=1.3.0
sudo apt install libk4a1.3-dev
sudo apt install libk4abt1.0-dev
k4a-tools
from updating with system update:sudo apt-mark hold k4a-tools
git clone git@github.com:microsoft/Azure_Kinect_ROS_Driver.git catkin_ws/src
cd catkin_ws
catkin_make
Expected behavior
catkin_make
allows to successfully buildAzure_Kinect_ROS_Driver
without the necessity to manually change/usr/lib/cmake/k4abt/k4abtConfig.cmake
Desktop: