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

cv_bridge converter tutorial not compiling

asked 2014-10-29 04:52:23 -0500

Rahndall gravatar image

Dear Ros Users, following the tutorial described at I'm experimenting problem on compiling:

In function ImageConverter::ImageConverter()': converter_demo.cpp:(.text._ZN14ImageConverterC2Ev[_ZN14ImageConverterC5Ev]+0x62): undefined reference toimage_transport::ImageTransport::ImageTransport(ros::NodeHandle const&)'

In the package.xml file, I declared the followind dependencies:

buildtool_depend: catkin, roscpp, rospy, std_msgs, image_transport, cv_bridge

run_depend: roscpp, rospy, std_msgs, image_transport, cv_bridge

Thank you!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-10-29 05:23:48 -0500

Wolf gravatar image

buildtool_depend must only be catkin. The others mentioned there have to be build_depend





Further, you have to find_package them in your CMakeLists.txt (in case you not yet have):

find_package(catkin REQUIRED COMPONENTS roscpp rospy std_msgs image_transport cv_bridge)
edit flag offensive delete link more


I "missed" the find package :) Now it works, thank you!

Rahndall gravatar image Rahndall  ( 2014-10-29 06:12:35 -0500 )edit

Question Tools

1 follower


Asked: 2014-10-29 04:52:23 -0500

Seen: 212 times

Last updated: Oct 29 '14