Warning
You're reading the documentation for a version of ROS 2 that has reached its EOL (end-of-life), and is no longer officially supported.
If you want up-to-date information, please have a look at Jazzy.
Cross-compilation
The cross_compile tool is not supported anymore.
An alternative to cross-compilation is to build multi-platform Docker images using docker buildx
.