Ask Your Question

Catkin unable to find package inside workspace

asked 2017-06-07 11:34:19 -0500

tonyParker gravatar image


I am rebuilding my workspace, my one package depend upon other. I deleted build and devel directories and tried to build again but it says "The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found"

Although package is in workspace. Any idea how to do that ?

edit retag flag offensive close merge delete


If package1 depends on package2, try this: catkin_make --pkg package2 then catkin_make again. This will first build only package2, and then the entire workspace. It will mean that package2 is already built and can be found by catkin the second time.

ufr3c_tjc gravatar image ufr3c_tjc  ( 2017-06-07 17:56:45 -0500 )edit

Never delete your devel folder!

gstavrinos gravatar image gstavrinos  ( 2017-06-08 04:13:31 -0500 )edit

@gstavrinos why? it is generated. @tonyParker please include the whole error message and more details about your setup.

William gravatar image William  ( 2017-06-08 04:19:29 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-06-08 07:11:54 -0500

tonyParker gravatar image

updated 2017-06-12 17:37:18 -0500

I got the answer. The package on which my package depend upon is not ros/catkin package. So catkin unable to find it. For building such packages following catkin arguments needs to pass at the first time buidling of catkin workspace.

catkin_make --cmake-args -DUSE_CATKIN=ON
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2017-06-07 11:34:19 -0500

Seen: 1,488 times

Last updated: Jun 12 '17