Re: [ros-users] Dependencies of a stack

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Brian Gerkey
Dato:  
Til: ros-users
Emne: Re: [ros-users] Dependencies of a stack
On Fri, Jul 16, 2010 at 11:08 AM, ibwood <> wrote:
>
> ok, why does my CMakeLists.txt file have an error with rospack (omnibot) on
> line 3?


> cmake_minimum_required(VERSION 2.4.6)
> include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
> rospack(omnibot)
> genmsg()


Because you're using a very very old version of the rosbuild API. You
should instead say:

> cmake_minimum_required(VERSION 2.4.6)
> include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
> rosbuild_init(omnibot)
> rosbuild_genmsg()


Out of curiosity, where did find the example that you started with?

    brian.