Unit 06 · lesson
Build With `colcon`
Build With colcon
From the workspace root:
cd ~/ros2_ws
colcon build
The official tutorial shows package-by-package start/finish messages followed by a summary.
Read the output
Do not treat a scrolling terminal as proof of success.
Look for:
- which packages started;
- which packages finished;
- whether a package failed;
- final summary.
Useful bounded options
The source tutorial mentions options including:
colcon build --packages-select <package>
colcon build --symlink-install
colcon build --executor sequential
For this course:
--packages-selectbecomes useful when you create your own package;--symlink-installis especially useful during Python development;--executor sequentialcan make logs easier to read on small systems.
Do not add flags just because they exist.
Checkpoint
Capture the final build summary and identify which package(s) actually built.