Unit 6 - Grasping - catkin_make problem

Hi guys,

I started the unit 6 of this course, in the beginning (unit 6.2) the command catkin_make used to compile the package simple_grasping doesn’t work. It gives the message:

CMake Error: File /home/user/catkin_ws/src/package.xml does not exist.
CMake Error at /opt/ros/noetic/share/catkin/cmake/stamp.cmake:10 (configure_file):
configure_file Problem configuring file

I’ve included a print of the screen with the error.

Someone could help? Thank you in advance,

Hi guys,

I found the problem. For some reason the file CMakeLists.txt wasn’t in the /catkin_ws/src folder. I created one with the content:

cmake_minimum_required(VERSION 3.0.2)
project(catkin_workspace)

find_package(catkin REQUIRED)
catkin_workspace()

And the catkin_make worked!

I imagine this is bug in the platform. I hope this message can help in fixing it.

See you,

@lmarangoni75

You should not need to create the CMakeLists.txt file manually.

Where are you running the catkin_make command? It should be run in the catkin_ws directory, and the CMakeLists.txt would be created in catkin_ws/src if it does not exist. However, the src folder must exist before you run catkin_make.

Ref:

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.