# Revision history [back]

It happens because you are overusing the CPU. Append -j1 or -j2 after catkin_make to use fewer cores. This will compile slower but at least it won't make your Rpi freeze.

catkin_make -j2


It happens because you are overusing the CPU. CPU(and its ram) . Append -j1 or -j2 after catkin_make to use fewer cores. This will compile slower but at least it won't make your Rpi freeze.

catkin_make -j2


EDIT The best way, in my opinion is Cross Compilation. Once, setup an environment on your pc(there are many tutorials for cross compiling for rpi) and also install minimal ros in that environment. Cross compile packages you want with:

catkin_make --install


and just copy the install directory into your rpi's workspace and source the file that is inside of it. For instance:

source ~/catkin_ws/install/setup.bash


Here's an also complete tutorial for cross compiling for Rpi with ROS: https://github.com/HesselM/rpicross_notes

It happens because you are overusing the CPU(and its ram) . Append -j1 or -j2 after catkin_make to use fewer cores. This will compile slower but at least it won't make your Rpi freeze.

catkin_make -j2


EDIT The best way, in my opinion is Cross Compilation. Once, setup an environment on your pc(there are many tutorials for cross compiling for rpi) and also install minimal ros in that environment. Cross Then just cross compile packages whenever you want with:

catkin_make --install


and just copy the install directory into your rpi's workspace and source the file that is inside of it. For instance:

source ~/catkin_ws/install/setup.bash


Here's an also complete tutorial for cross compiling for Rpi with ROS: https://github.com/HesselM/rpicross_notes

It happens because you are overusing the CPU(and its ram) . Append -j1 or -j2 after catkin_make to use fewer cores. This will compile slower but at least it won't make your Rpi freeze.

catkin_make -j2


EDIT The best way, in my opinion is Cross Compilation. Once, setup an environment on your pc(there are many tutorials for cross compiling for rpi) and also install minimal ros in that environment. Then just cross compile packages whenever you want with:

catkin_make --install
install


and just copy the install directory into your rpi's workspace and source the file that is inside of it. For instance:

source ~/catkin_ws/install/setup.bash


Here's an also complete tutorial for cross compiling for Rpi with ROS: https://github.com/HesselM/rpicross_notes

It happens because you are overusing the CPU(and its ram) . Append -j1 or -j2 after catkin_make to use fewer cores. This will compile slower but at least it won't make your Rpi freeze.

catkin_make -j2


EDIT The best way, in my opinion is Cross Compilation. Once, setup an environment on your pc(there are many tutorials for cross compiling for rpi) and also install minimal ros in that environment. Then just cross compile packages whenever you want with:

catkin_make install


and just copy the install directory into your rpi's workspace and source the file that is inside of it. For instance:

source ~/catkin_ws/install/setup.bash


Here's an also complete tutorial for cross compiling for Rpi with ROS: https://github.com/HesselM/rpicross_notes