Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant build the package on Raspberry Pi #140

Open
FredericTherrien4 opened this issue Mar 7, 2024 · 3 comments
Open

Cant build the package on Raspberry Pi #140

FredericTherrien4 opened this issue Mar 7, 2024 · 3 comments
Labels

Comments

@FredericTherrien4
Copy link

FredericTherrien4 commented Mar 7, 2024

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

  • ROS Version: Ros2 Humble
  • Platform / OS: Ubuntu 22.04
@mdthabrez
Copy link

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
Copy link
Author

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
Copy link
Collaborator

bjsowa commented Sep 30, 2024

@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

@bjsowa bjsowa changed the title Cant build the package Cant build the package on Raspberry Pi Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants