Problem with using Qt New Functions of OpenCV2
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::basicstring<char, std::chartraits
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!!
Asked by Mike Gao on 2012-09-27 10:09:32 UTC
Answers
This is not a ROS question, but an OpenCV question. Please ask this on the OpenCV answers website.
Asked by Kevin on 2012-09-27 12:02:54 UTC
Comments
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?
Asked by 2ROS0 on 2017-04-21 15:48:44 UTC
Comments
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?
Asked by 2ROS0 on 2017-04-21 15:59:07 UTC