Ask Your Question
0

Have an errror Could neither find file "toplevel.cmake" on Ubuntu 20.04

asked 2020-10-20 09:10:55 -0500

jhonyle gravatar image

Try to catkin_init_workspace in directory ~/catkin_ws/src, but have an error:

Could neither find file "toplevel.cmake" in any workspace nor relative, checked the following paths:

/home/mvshalamov/catkin_ws/src/catkin/cmake/toplevel.cmake

/usr/local/lib/python3.8/cmake/toplevel.cmake

/usr/local/share/catkin/cmake/toplevel.cmake

/usr/local/lib/share/catkin/cmake/toplevel.cmake

I checked there is no toplevel.cmake in any of these directories. I also tried sudo mv share /usr/local/lib but there is not catkin in it.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-10-21 00:35:53 -0500

gvdhoorn gravatar image

It's very likely you haven't actually installed ROS Noetic, but a version of ROS packaged in so called UpstreamPackages.

This is not the current release of ROS Noetic, but a snapshot of ROS taken at some point in the past. I'd recommend you read the linked wiki page for more information.

Did you install ros-desktop or ros-desktop-full by any chance? Or did you install catkin directly?

To resolve your problem, I'd recommend following the installation instructions given on wiki/noetic/Installation.

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

Stats

Asked: 2020-10-20 09:10:55 -0500

Seen: 245 times

Last updated: Oct 21 '20