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?
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 with101010
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.
I fixed it but it says I need 200 points to reopen the question...