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

Problem with using Qt New Functions of OpenCV2 [closed]

asked 2012-09-27 10:09:32 -0600

Mike Gao gravatar image

updated 2014-04-20 14:09:45 -0600

ngrennan gravatar image

Hello, the problem I encounter is that when I try to add a button to the image window using "cv::createButton" function from the HighGui Module of OpenCV2, the build process always fails:

undefined reference to `cv::createButton(std::basic_string<char, std::char_traits<char="">, std::allocator<char> > const&, void ()(int, void), void*, int, bool)'

After I checked online, I know that this function is one of the Qt New Functions of the HighGui Module of OpenCV2. I also checked some information about using qt with ros, but it seems that they do not work for me. I thought OpenCV packages have already integrated these functions, so they could be used like other normal OpenCV functions without special cares (I mean, in ROS).

So how should I change my cmake file to make them work, or which libs do I need to use such functions?

I use ROS-Fuerte with Ubuntu 12.04, the version of OpenCV is

Version: 2.4.2-0precise-20120908-1632-+0000

Thanks for any help!!

edit retag flag offensive reopen merge delete

Closed for the following reason OpenCV Question: THe OpenCV community prefers to answer questions at: by tfoote
close date 2017-07-07 15:43:11.393447


Any developments on this yet? I'm using ROS Indigo and it too seems to have OpenCV compiled without Qt support. How to get around this?

2ROS0 gravatar image 2ROS0  ( 2017-04-21 15:59:07 -0600 )edit

1 Answer

Sort by » oldest newest most voted

answered 2012-09-27 12:02:54 -0600

Kevin gravatar image

This is not a ROS question, but an OpenCV question. Please ask this on the OpenCV answers website.

edit flag offensive delete link more


This has to do with stock OpenCV that is distributed as part of ROS. So it seems like this is the right place to ask this question. Why does it not have Qt support compiled?

2ROS0 gravatar image 2ROS0  ( 2017-04-21 15:48:44 -0600 )edit

Question Tools


Asked: 2012-09-27 10:09:32 -0600

Seen: 748 times

Last updated: Sep 27 '12