Ask Your Question

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)



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

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


@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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


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

Seen: 746 times

Last updated: Aug 29 '11