Skip to content

Commit

Permalink
Low memory tip for building (#882)
Browse files Browse the repository at this point in the history
I was finally able to build the moveit and movit tutorials packages using:
MAKEFLAGS="-j4 -l1" colcon build --executor sequential
  • Loading branch information
Jakeisthesnake authored Aug 10, 2024
1 parent 97f2fd2 commit 59196ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorials/getting_started/getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ This build command will likely take a long time (20+ minutes) depending on your
.. warning::
Some of the packages built with this command require up to 16Gb of RAM to build. By default, ``colcon`` tries to build as many packages as possible at the same time.
If you are low on computer memory, or if the build is generally having trouble completing on your computer,
you can try appending ``--executor sequential`` to the ``colcon`` command above to build only one package at a time, or ``--parallel-workers <X>`` to limit the number of simultaneous builds.
you can try appending ``--executor sequential`` to the ``colcon`` command above to build only one package at a time, or ``--parallel-workers <X>`` to limit the number of simultaneous builds. For even more limited machines, you can try running ``MAKEFLAGS="-j4 -l1" colcon build --executor sequential``.

If everything goes well, you should see the message "Summary: X packages finished" where X might be 50. If you have problems, try re-checking your `ROS Installation <https://docs.ros.org/en/rolling/Installation.html>`_.

Expand Down

0 comments on commit 59196ff

Please sign in to comment.