Robotics StackExchange | Archived questions

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

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?

Asked by jk9000 on 2021-09-28 06:59:51 UTC

Comments

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.

Asked by gvdhoorn on 2021-09-28 08:41:10 UTC

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

Asked by jk9000 on 2021-09-28 08:45:10 UTC

Answers

source /opt/ros/melodic/setup.bash

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

Asked by miura on 2021-09-28 18:45:48 UTC

Comments