Re: [ros-users] Dependencies of a stack

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Brian Gerkey
日付:  
To: ros-users
題目: 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.