colcon build package-up-to can't find installed package

asked 2019-05-15 18:19:08 -0600

kadlu gravatar image

Because I have the same error as in this issue: https://github.com/ros2/rosidl_typesu...

I tried to solve it according the suggestions of jacobperron here: https://github.com/ros2/rosidl_typesu... , with the difference that I have another rti_connex version (6.0.0). To source the path worked. But as i want to make the second step :

colcon build --packages-up-to rmw_connext_cpp

i got the error:

Package 'rmw_connext_cpp' specified with --packages-up-to was not found

I checked it in ros2 and the package is available:

$ ros2 pkg list | grep rmw_connext_cpp
rmw_connext_cpp'

somehow I am confused. what am I doing wrong :/

edit retag flag offensive close merge delete

Comments

So are you running OSX? Or Linux? If the latter: if you installed using apt, I would expect colcon not being able to build the package, as it only builds pkgs that are present in your workspace in source form.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-16 02:14:12 -0600 )edit

Oh that was the right hint. I use OSX 10.14.4. First i tried to install ros2 according this instructions: https://index.ros.org//doc/ros2/Insta... Because of not ending build errors i looked for a other solution and found this instructions: https://index.ros.org//doc/ros2/Insta... . I think i downloaded a allready buildet os with this solution. I have no src files. I will make a src folder and download the package source from somewhere. And try it again. Thank you! How would you suggest to handle if it still not working bot maybe a other reason? Close this ticket and make a new one?

kadlu gravatar image kadlu  ( 2019-05-16 06:06:18 -0600 )edit

I would suggest to only build the affected package(s) in a workspace if possible, not entire ROS 2.

That would save you a lot of work and time.

How would you suggest to handle if it still not working bot maybe a other reason? Close this ticket and make a new one?

If what is still not working? If colcon still can't build the package: just post another comment here. If building the pkg doesn't solve your problem: that would be a new issue, as it's unconnected to your current issue.

gvdhoorn gravatar image gvdhoorn  ( 2019-05-16 06:30:49 -0600 )edit