LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Problem when trying to build a ROS package (https://www.linuxquestions.org/questions/linux-software-2/problem-when-trying-to-build-a-ros-package-938063/)

adventistManu 04-04-2012 07:27 AM

Problem when trying to build a ROS package
 
Hello,
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:

Code:

[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:

Code:

[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:

Code:

[manu@manu rospy]$ rospack find mk
/home/manu/ros/ros/core/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 :D.

adventistManu 04-10-2012 06:33 AM

żAny suggestion about this? I've been looking for a while and haven't make any progress yet :(

adventistManu 04-10-2012 12:08 PM

I have solved this, it was a permission's issue. The rospack command was not visible to root, thus it was not resolving the path correctly.


All times are GMT -5. The time now is 04:00 AM.