ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

catkin_make failed: must be invoked in the root of workspace.

asked 2022-03-03 10:46:03 -0500

Hi! I want to build libfreenect, following this tutorial.

catkin_make -j2 gave me this error:

The specified base path "/home/pi/libfreenect" contains a CMakeLists.txt but "catkin_make" must be invoked in the root of workspace

I tried the answer on some questions regarding this issue, but it didn't work for me.

Can someone help?

I'm using the melodic ROS distro.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-03-03 17:25:16 -0500

Mike Scheutzow gravatar image

There is a difference between the tools cmake and catkin_make. libfreenect does not appear to be a ros package, so you can't use catkin_make to compile it. The text at the link you provided shows you what to do.

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

1 follower


Asked: 2022-03-03 10:46:03 -0500

Seen: 61 times

Last updated: Mar 03 '22