ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Search for 'catkin' in workspace failed (catkin_find_pkg catkin /home/ubuntu/catkin_ws/src):

asked 2021-09-28 06:59:51 -0600

jk9000 gravatar image

updated 2021-09-28 08:44:39 -0600

I can't run catkin_make after having installed ros-melodic-ros-base on my RPi4 running Ubuntu 18.04.

Here's the error:

ubuntu@ubuntu:—/catkin_ws$ catkin_make 
Base path: /home/ubuntu/catkin_ws 
Source space: /home/ubuntu/catkin_ws/src 
Build space: /home/ubuntu/catkin_ws/build 
Devel space: /home/ubuntu/catkin_ws/devel 
Install space: /home/ubuntu/catkin_ws/install 
#### Running command: "cmake /home/ubuntu/catkin_ws/src —DCATKIN_DEVEL_PREFIX= /home/ubuntu/catkin_ws/devel —DCMAKE_INSTALL_PREFIX=/home/ubuntu/catkin_ws/ins tall —G Unix Makefiles" in "/home/ubuntu/catkin_ws/build" 
CMake Error at CMakeLists.txt:22 (message): Search for 'catkin' in workspace failed (catkin_find_pkg catkin /home/ubuntu/catkin_ws/src): 

-- Configuring incomplete, errors occurred! 
See also "/home/ubuntu/catkin_ws/build/CMakeFiles/CMakeOutput.log". 
Invoking "cmake" failed

How to fix it?

edit retag flag offensive close merge delete


I'm sorry to have to do this for something seemingly minor, but please don't post screenshots of terminal text in question on ROS Answers. It's all text, so there is no need. Just copy-paste the text from the terminal into your question text. Do make sure to format it properly by selecting the text and pressing ctrl+k (or clicking the Preformatted Text button (the one with 101010 on it)).

You don't need to post a new question, just edit your curent one. You can use the edit button/link for this.

After you replace the screenshot with the error message itself, we can re-open your question.

gvdhoorn gravatar image gvdhoorn  ( 2021-09-28 08:41:10 -0600 )edit

I fixed it but it says I need 200 points to reopen the question...

jk9000 gravatar image jk9000  ( 2021-09-28 08:45:10 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2021-09-28 18:45:48 -0600

miura gravatar image
source /opt/ros/melodic/setup.bash

and then try catkin_make. This looks like it will work.

edit flag offensive delete link more

Question Tools


Asked: 2021-09-28 06:59:51 -0600

Seen: 739 times

Last updated: Sep 28 '21