missing dependencies in CI/ubuntu compiled libbasalt.so on/for Debian Sid
Hi,
Trying to start monado-service with Basalt installed through the precompiled CI Ubuntu deb package on Debian Sid, but with Monado self-/recompiled from recent Git, results in the following error:
user@ArgOS-Augen:~/dev/VR$ LD_LIBRARY_PATH=/usr/local/lib monado-service
INFO [ipc_server_main] Monado(XRT) by Collabora et al 'v21.0.0-4397-g8df4d0eb' starting up...
INFO [wmr_read_config] Manufacturer: HP Inc.
INFO [wmr_read_config] Device: VR3000-0XX
INFO [wmr_read_config] Serial: 8CC107Z5SM
INFO [wmr_read_config] UID: {26412B58-5143-56AD-8222-A3E26B87E5FB}
INFO [wmr_read_config] Name: HP Reverb Virtual Reality Headset G2
INFO [wmr_read_config] Revision: RevB.M.J
INFO [wmr_read_config] Revision Date: 2021-02-22
INFO [wmr_hmd_create] Found WMR headset type: HP Reverb G2
INFO [wmr_hmd_create] FoV eye 0 angles left -0.906347 right 0.724723 down -0.808741 up 0.813367
INFO [wmr_hmd_create] Render texture range -1.276718, -1.047811 to 0.885459, 1.057563
INFO [wmr_hmd_create] FoV eye 1 angles left -0.724211 right 0.904758 down -0.808154 up 0.811717
INFO [wmr_hmd_create] Render texture range -0.884545, -1.046579 to 1.272547, 1.054073
INFO [wmr_hmd_activate_reverb] Sent activation report.
INFO [wmr_hmd_activate_reverb] Sleep until the HMD display is powered up, so the available displays can be enumerated by the host system.
INFO [t_slam_create] Loading VIT system library from VIT_SYSTEM_LIBRARY_PATH='libbasalt.so'
ERROR [t_vit_bundle_load] Failed to open VIT library: libopencv_features2d.so.4.5d: cannot open shared object file: No such file or directory
ERROR [t_slam_create] Failed to load VIT system library from 'libbasalt.so'
WARN [wmr_hmd_setup_trackers] Unable to setup the SLAM tracker
ERROR [wmr_create_headset] Failed to create WMR HMD device.
INFO [p_create_system] Creating system:
Builders:
remote: Remote simulation devices builder
simulated: Simulated devices builder
rift_s: Oculus Rift S
rgb_tracking: RGB tracking based devices (PSVR, PSMV, ...)
lighthouse: Lighthouse-tracked FLOSS (Vive, Index, Tundra trackers, etc.) devices builder
nreal_air: Nreal Air
north_star: North Star headset
wmr: Windows Mixed Reality
legacy: Legacy probing system
No builder selected in config (or wasn't compiled in)
Selected wmr because it was certain it could create a head
Using builder wmr: Windows Mixed Reality
Result: XRT_ERROR_DEVICE_CREATION_FAILED
ERROR [init_all] Could not create system!
INFO [print_linux_end_user_failed_information]
################################################################################
# #
# The Monado service has failed to start. #
# #
# If you want to report please upload the logs of the service as a text file. #
# You can also capture the output the monado-cli info command to provide more #
# information about your system, that will help diagnosing your problem. The #
# below commands is how you best capture the information from the commands. #
# #
# monado-cli info 2>&1 | tee info.txt #
# monado-service 2>&1 | tee logs.txt #
# #
################################################################################
LDD reveals a few missing dependencies:
user@ArgOS-Augen:~/dev/VR/monado/build$ LD_LIBRARY_PATH=/usr/local/lib ldd /usr/local/lib/libbasalt.so
linux-vdso.so.1 (0x00007fffee956000)
libopencv_features2d.so.4.5d => not found
libopencv_imgproc.so.4.5d => not found
libopencv_core.so.4.5d => not found
libtbb.so.12 => /lib/x86_64-linux-gnu/libtbb.so.12 (0x00007f7511a27000)
libOpenGL.so.0 => /lib/x86_64-linux-gnu/libOpenGL.so.0 (0x00007f75119fc000)
libGLX.so.0 => /lib/x86_64-linux-gnu/libGLX.so.0 (0x00007f75119c6000)
libGLEW.so.2.2 => /lib/x86_64-linux-gnu/libGLEW.so.2.2 (0x00007f7511342000)
libEGL.so.1 => /lib/x86_64-linux-gnu/libEGL.so.1 (0x00007f75119b0000)
libX11.so.6 => /lib/x86_64-linux-gnu/libX11.so.6 (0x00007f75111fe000)
libdc1394.so.25 => /lib/x86_64-linux-gnu/libdc1394.so.25 (0x00007f7511185000)
libpng16.so.16 => /lib/x86_64-linux-gnu/libpng16.so.16 (0x00007f751197a000)
libjpeg.so.8 => not found
liblz4.so.1 => /lib/x86_64-linux-gnu/liblz4.so.1 (0x00007f751115f000)
libfmt.so.8 => not found
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7510e00000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7511080000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7510dd3000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7510bf1000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7511aa0000)
libGLdispatch.so.0 => /lib/x86_64-linux-gnu/libGLdispatch.so.0 (0x00007f7510b38000)
libGL.so.1 => /lib/x86_64-linux-gnu/libGL.so.1 (0x00007f7510ab1000)
libxcb.so.1 => /lib/x86_64-linux-gnu/libxcb.so.1 (0x00007f7510a87000)
libraw1394.so.11 => /lib/x86_64-linux-gnu/libraw1394.so.11 (0x00007f751106d000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7511066000)
libusb-1.0.so.0 => /lib/x86_64-linux-gnu/libusb-1.0.so.0 (0x00007f7510a67000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7510a48000)
libXau.so.6 => /lib/x86_64-linux-gnu/libXau.so.6 (0x00007f7510a43000)
libXdmcp.so.6 => /lib/x86_64-linux-gnu/libXdmcp.so.6 (0x00007f7510800000)
libudev.so.1 => /lib/x86_64-linux-gnu/libudev.so.1 (0x00007f7510a0e000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007f75107eb000)
libcap.so.2 => /lib/x86_64-linux-gnu/libcap.so.2 (0x00007f75107df000)
libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007f75107d0000)
And dpkg + apt-file say:
user@ArgOS-Augen:~/dev/VR/monado/build$ apt-file search libopencv_features2d
libopencv-features2d-dev: /usr/lib/x86_64-linux-gnu/libopencv_features2d.a
libopencv-features2d-dev: /usr/lib/x86_64-linux-gnu/libopencv_features2d.so
libopencv-features2d406: /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.4.6.0
libopencv-features2d406: /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.406
libopencv-features2d406t64: /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.4.6.0
libopencv-features2d406t64: /usr/lib/x86_64-linux-gnu/libopencv_features2d.so.406
user@ArgOS-Augen:~/dev/VR/monado/build$ dpkg -l | grep libopencv-features2d406^C
user@ArgOS-Augen:~/dev/VR/monado/build$ dpkg -l | grep libopencv-features2d406
ii libopencv-features2d-dev:amd64 4.6.0+dfsg-13.1 amd64 development files for libopencv-features2d406t64
ii libopencv-features2d406t64:amd64 4.6.0+dfsg-13.1 amd64 computer vision Feature Detection and Descriptor Extraction library
user@ArgOS-Augen:~/dev/VR/monado/build$ dpkg -l | grep basalt
ii basalt 0.1.0-202401241845~ amd64 basalt built using CMake
So no libopencv_features2d.so.4.5d there, it seems.