Ask Your Question
0

Compiling learning_image_transport tutorial on fuerte/catkin

asked 2012-09-02 03:58:41 -0500

Fabien R gravatar image

updated 2012-09-03 12:22:43 -0500

joq gravatar image

Hello,

I try to build the tutorial package learning_image_transport on fuerte/catkin running debian/sid. I had to install the following packages: pluginlib, opencv2,cv_bridge,image_transport.

I successfully created the package using the following commands:

roscd

roscreate-pkg learning_image_transport image_transport opencv2 cv_bridge

rospack profile

But the compilation fails:

cmake learning_image_transport

[rosbuild] Building package learning_image_transport

[rosbuild] Cached build flags older than manifests; calling rospack to get flags

Failed to invoke /opt/ros/fuerte/bin/rospack cflags-only-I;--deps-only learning_image_transport

Package pluginlib was not found in the pkg-config search path. Perhaps you should add the directory containing `pluginlib.pc' to the PKG_CONFIG_PATH environment variable

No package 'pluginlib' found

CMake Error at /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:129 (message):

Failed to invoke rospack to get compile flags for package 'learning_image_transport'. Look above for errors from rospack itself. Aborting. Please fix the broken dependency!

Call Stack (most recent call first): /opt/ros/fuerte/share/ros/core/rosbuild/public.cmake:227 (rosbuild_invoke_rospack) CMakeLists.txt:12 (rosbuild_init)

-- Configuring incomplete, errors occurred!

The file pluginlib.pc is in /opt/ros/fuerte/share/pluginlib/build/CMakeFiles How can I add it ?

edit retag flag offensive close merge delete

Comments

@joq: The result is the same with rosmake: [ rosmake ] All 25 linesmage_transport: 0.8 ec [rosbuild] Building package image_transport No package 'pluginlib' found.

Fabien R gravatar image Fabien R  ( 2012-09-08 03:08:20 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-09-03 13:20:05 -0500

jkammerl gravatar image

image_transport is not fully migrated to catkin yet since a few dependencies such as pluginlib still needs to be catkinized. Building the package with rosbuild should work.

edit flag offensive delete link more
0

answered 2012-09-03 12:25:07 -0500

joq gravatar image

updated 2012-09-08 06:02:15 -0500

It looks like you are creating a traditional (non-catkin) package.

What happens if you run rosmake, instead of cmake?

EDIT: how did you install the dependencies (especially image_transport and pluginlib)?

It looks like the current development pluginlib source has been converted to catkin. If you build it from source for Fuerte, please check out the fuerte tag rather than the main branch (i.e. tip).

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-09-02 03:58:41 -0500

Seen: 646 times

Last updated: Sep 08 '12