AzureKinectPointCloudProvider fails to start because libdepthengine.so.2.0 is missing
When installing the Azure Kinect feature of VisionX with the new setup tool, the AzureKinectPointCloudProvider fails to start because libdepthengine.so.2.0 is missing. This library is located in the deps/azure-kinect/depth-engine/usr/lib/x86_64-linux-gnu/lib
directory, but this is not on the LD_LIBRARY_PATH.
Error Message
[2021-11-10 09:48:55.093] [error] [t=21282] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/dynlib/dynlib_linux.c (82): dynlib_create(). Failed to load shared object libdepthengine.so.2.0 with error: libdepthengine.so.2.0: cannot open shared object file: No such file or directory
[2021-11-10 09:48:55.093] [error] [t=21282] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/deloader/deloader.cpp (75): deloader_init_once(). Failed to Load Depth Engine Plugin (depthengine). Depth functionality will not work
[2021-11-10 09:48:55.093] [error] [t=21282] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/deloader/deloader.cpp (76): deloader_init_once(). Make sure the depth engine plugin is in your loaders path
[2021-11-10 09:48:55.093] [error] [t=21282] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/deloader/deloader.cpp (186): deloader_transform_engine_create_and_initialize(). Failed to load depth engine plugin
[2021-11-10 09:48:55.093] [error] [t=21282] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/tewrapper/tewrapper.c (61): transform_engine_start_helper(). Transform engine create and initialize failed with error code: 108.
[2021-11-10 09:48:55.093] [error] [t=21282] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/tewrapper/tewrapper.c (68): teresult == K4A_DEPTH_ENGINE_RESULT_SUCCEEDED returned failure in transform_engine_start_helper()
[2021-11-10 09:48:55.094] [error] [t=21282] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/tewrapper/tewrapper.c (86): transform_engine_start_helper(tewrapper) returned failure in transform_engine_thread()
[2021-11-10 09:48:55.094] [error] [t=21267] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/tewrapper/tewrapper.c (313): tewrapper_create(). Transform Engine thread failed to start
[2021-11-10 09:48:55.094] [error] [t=21267] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/transformation/transformation.c (637): transformation_context->tewrapper != NULL returned failure in transformation_create()
[2021-11-10 09:48:55.110] [error] [t=21283] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/deloader/deloader.cpp (113): deloader_depth_engine_create_and_initialize(). Failed to load depth engine plugin
[2021-11-10 09:48:55.110] [error] [t=21283] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/dewrapper/dewrapper.c (154): depth_engine_start_helper(). Depth engine create and initialize failed with error code: 108.
[2021-11-10 09:48:55.110] [error] [t=21283] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/dewrapper/dewrapper.c (160): deresult == K4A_DEPTH_ENGINE_RESULT_SUCCEEDED returned failure in depth_engine_start_helper()
[2021-11-10 09:48:55.110] [error] [t=21283] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/dewrapper/dewrapper.c (194): depth_engine_start_helper(dewrapper, dewrapper->fps, dewrapper->depth_mode, &depth_engine_max_compute_time_ms, &depth_engine_output_buffer_size) returned failure in depth_engine_thread()
[2021-11-10 09:48:55.110] [error] [t=21267] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/dewrapper/dewrapper.c (552): dewrapper_start(). Depth Engine thread failed to start
[2021-11-10 09:48:55.110] [error] [t=21267] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/depth/depth.c (398): dewrapper_start(depth->dewrapper, config, depth->calibration_memory, depth->calibration_memory_size) returned failure in depth_start()
[2021-11-10 09:48:55.117] [error] [t=21267] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/depth_mcu/depth_mcu.c (359): cmd_status == CMD_STATUS_PASS returned failure in depthmcu_depth_stop_streaming()
[2021-11-10 09:48:55.117] [error] [t=21267] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/depth_mcu/depth_mcu.c (362): depthmcu_depth_stop_streaming(). ERROR: cmd_status=0x00000063
[2021-11-10 09:48:55.120] [error] [t=21267] /home/christoph/Code/Cpp/armarx/deps/azure-kinect/sensor-sdk/src/sdk/k4a.c (895): depth_start(device->depth, config) returned failure in k4a_device_start_cameras()
Edited by Rainer Kartmann