RobotWebTools / web_video_server

HTTP Streaming of ROS Image Topics in Multiple Formats
http://ros.org/wiki/web_video_server
BSD 3-Clause "New" or "Revised" License
281 stars 191 forks source link

Cant build the package on Raspberry Pi #140

Open FredericTherrien4 opened 8 months ago

FredericTherrien4 commented 8 months ago

Hi,

I am working with ubuntu 22.04 installed on a Raspberry PI 4 with ros2 humble.

I cloned the package into my workspace and when i tried to colcon build the package it fails at 36% and crashes the PI.

Is it a know issue?

Thanks

mdthabrez commented 8 months ago

Hello , I am working with ubuntu 22.04 installed on a Raspberry PI 4 with ros2 Iron. I git cloned the ros2 branch of web_video_server . I am also facing the same problem where the colcon build fails at 36% and crashes the Pi. Can the developers please help us by fixing it OR is a problem from my side ?

Thanks

ROS Version: Ros2 Iron Irwini Platform / OS: Ubuntu 22.04

FredericTherrien4 commented 8 months ago

Hi,

I've been able to make the package run. I found that it was an image formatting that was the problem. There is a dependency called ffmpeg in the package.xml file. I've putted it in comment and also commented the lines 44 to 47 in the CMakeLists.txt file.

If you go into the log file that is generated when you use colcon build you will probably see that the errors are linked to the libav_streamer.cpp node. From what I saw, libav is an image format that can be run using the package "ffmpeg" named earlier. I have'nt found a way to install this package so i commented everything related to it because i didn't need the format related to it. (VP9,h264,VP8 and libav are the format that were problematic).

Hope that it will help you too,

Fred

bjsowa commented 1 month ago

@FredericTherrien4 @mdthabrez It's possible that Raspberry Pi is running out of memory.

You can try limiting number of parallel jobs by running

export MAKEFLAGS="-j 1"

before colcon build