IntelRealSense / librealsense

Intel® RealSense™ SDK
https://www.intelrealsense.com/
Apache License 2.0
7.63k stars 4.83k forks source link

librealsense integration in treep workspace #13454

Closed paulonhantumbojr closed 1 week ago

paulonhantumbojr commented 1 month ago

Required Info
Camera Model D400
Firmware Version
Operating System & Version Linux (Ubuntu 20.04)
Kernel Version (Linux Only) 5.15.0-124-generic
Platform PC
SDK Version 2.0
Language C++
Segment others

Issue Description

I am trying to integrate librealsense into an independent package built using treep. For reference, as per the instructions these are the changes I incorporate in configurations.yaml:

librealsense: 'git@github.com:IntelRealSense/'
ssh-librealsense: 'git@github.com:IntelRealSense/'
https-librealsense: 'https://github.com/IntelRealSense/'

and in repositories.yaml:

librealsense:
    path: src/
    origin: librealsense

The cloning works fine after running treep --clone librealsense. However, when trying to build the workspace with colcon build, I eventually get the following error:

/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
/sbin/ldconfig.real: Can't create temporary cache file /etc/ld.so.cache~: Permission denied

I tried running a sudo along with this, but to no avail, since no command is associated with colcon. How would I circumvent this?

MartyG-RealSense commented 1 month ago

Hi @paulonhantumbojr I am not familiar with treep. However, you could try building librealsense from source code with CMake with the flag -DBUILD_SHARED_LIBS=false included in the CMake build instruction. This will cause librealsense to be output from the build process as a static library instead of a dynamic link library (DLL) or a shared object (SO). Further information about this can be found at https://github.com/IntelRealSense/librealsense/issues/4649

MartyG-RealSense commented 3 weeks ago

Hi @paulonhantumbojr Do you require further assistance with this case, please? Thanks!

MartyG-RealSense commented 1 week ago

Case closed due to no further comments received.