ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Unknown CMake command "rospack"

asked 2011-08-29 08:11:12 -0500

130s gravatar image

updated 2014-01-28 17:10:18 -0500

ngrennan gravatar image

I'm trying to build old ROS package (originally made in 2009 by a third party). make returns this error:

CMake Error at CMakeLists.txt:5 (rospack):
Unknown CMake command "rospack".

1st 5 lines of CMakeLists.txt:

cmake_minimum_required(VERSION 2.6)

include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

rospack(navgtn_common)

rospack runs from terminal with admin privilege.

rosmake seems also stuck at rospack in the same manner (output).

Google tells me that using find_package might be a solution (reference) but then I haven't figured out which package to call within that function.

Env: diamondback, Ubuntu 10.10

Any idea? Thanks.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-08-29 09:50:41 -0500

dornhege gravatar image

You are looking for a ROS package, right? Then have a look at the rosbuild find_ros_package docs.

edit flag offensive delete link more

Comments

@dornhege thanks. Replacing "rospack" with "rosbuild_find_ros_package" has cleared the error. Didn't know CMake macros and command-line tools are different...
130s gravatar image 130s  ( 2011-08-29 10:22:57 -0500 )edit

Question Tools

Stats

Asked: 2011-08-29 08:11:12 -0500

Seen: 857 times

Last updated: Aug 29 '11