0
$\begingroup$

Rosanswers logo

I have pulled all ROS2 repos into my overlay workspace using

wget https://raw.githubusercontent.com/ros2/ros2/release-latest/ros2.repos
vcs import src < ros2.repos

How can I build one specific package and its dependencies only? Let's say I want to build rcl with ament build --only-packages rcl this will not work because of the directory structure in src where rcl resides in src/ros2/rcl.


Originally posted by thinwybk on ROS Answers with karma: 468 on 2018-03-08

Post score: 0


Original comments

Comment by William on 2018-03-08:
The location of rcl in the src folder doesn't matter when using --only, because it matches package names, not folder locations.

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I'd also add to @tfoote's answer:

How can I build one specific package and its dependencies only?

You cannot currently do that, --end-with rcl will build all packages that would have been built before rcl whether or not rcl depends on them.


Originally posted by William with karma: 17335 on 2018-03-08

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by thinwybk on 2018-03-08:
Means its not possible to combine --start-with with --end-with then?

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.