Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
ubuntu@ubuntu:~/catkin_ws$ catkin_make rplidarNode
Base path: /home/ubuntu/catkin_ws
Source space: /home/ubuntu/catkin_ws/src
The specified base path "/home/ubuntu/catkin_ws" contains a CMakeLists.txt but "catkin_make" must be invoked in the root of workspace

There is probably a CMakeLists.txt in /home/ubuntu/catkin_ws. There shouldn't be.

Can you add the output of:

ls -al /home/ubuntu/catkin_ws

to your original question? Use the edit button/link for that.

ubuntu@ubuntu:~/catkin_ws$ catkin_make rplidarNode
Base path: /home/ubuntu/catkin_ws
Source space: /home/ubuntu/catkin_ws/src
The specified base path "/home/ubuntu/catkin_ws" contains a CMakeLists.txt but "catkin_make" must be invoked in the root of workspace

There is probably a CMakeLists.txt in /home/ubuntu/catkin_ws. There shouldn't be.

Can you add the output of:

ls -al /home/ubuntu/catkin_ws

to your original question? Use the edit button/link for that.


Edit:

You are right! I hace a CMakeLists.txt in /home/ubuntu/catkin_ws .

I'd use unlink:

unlink /home/ubuntu/catkin_ws/CMakeLists.txt

Then try catkin_make again.