Adding Network Modules to Realsense Yocto Layer Build
I have successfully been able to add the meta-intel-realsense layer to my yocto build but I am unable to determine how to include the network modules. Mainly I wanted be able to use the rs-server tool and I was looking at this guide and saw that I needed to add the network device flag to the cmake command.
I tried to adding the flags to the EXTRA_OECMAKE parameter in the librealsense bb file.
I also tried to create a CMakeLists.txt file, specify the flags within this file and then pointing towards this file in the bb file in the SRC_URI parameter.
Both of these changes don't change the build in any way and they also don't cause any errors either.
Any help or direction would be much appreciated. Thanks!
-
Hi Matthew Derzay Have you made an ssh connection to the computer that you installed Yocto / librealsense2 on to test whether rs-server can be started (in case it was actually built). For example from the ethernet guide:
ssh realsense@10.0.0.99
sudo systemctl restart rs-server.service -
Hi Marty, yes I can connect to the computer with ssh. I don't have systemd included so I can't use the systemctl command at the moment. But for example when I try to run rs-server, it says command not found. Other commands like rs-enumerate-devices do work so I know at least the basics of the layer are included in the build.
-
It looks as though the Yocto layer for librealsense uses the master branch of the librealsense GitHub, meaning that the latest version of librealsense should be installed. So your librealsense build should have the capability to use networking if the CMake build flag -DBUILD_NETWORK_DEVICE=ON is used.
The rs-server networking support was added in librealsense SDK version 2.34.0 and present in all subsequent versions. Can you confirm which librealsense version is installed, please?
Please sign in to leave a comment.
Comments
3 comments