I'm learning how to use ROS, which is an API to develop robot applications. I'm trying to build some packages provided by ROS but I'm getting the following error:
[manu@manu rospy]$ sudo make
[sudo] password for manu:
make: rospack: Command not found
Makefile:1: /cmake.mk: No such file or directory
make: *** No rule to make target `/cmake.mk'. Stop.
The makefile for this package looks like this:
[manu@manu rospy]$ cat Makefile
include $(shell rospack find mk)/cmake.mk
If I understand correctly this file, it is trying to find the path of the 'cmake.mk' file in order to execute it, but for some reason this is failing. If I execute directly in my bash shell:
[manu@manu rospy]$ rospack find mk
the 'rospack' command works correctly, so I don't understand why it doesn't work in the Makefile.
I'm not sure of how the '$(shell ...) part of the Makefile works, I think maybe the problem could be here... I'll really appreciate any help or suggestion about this