Problem with using Qt New Functions of OpenCV2 [closed]
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!!
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?