Problem with using Qt Functions '"createButton" of OpenCV2
Hello, I use the integrated OpenCV of ROS (installed directly through ROS). The problem I encounter is that when I try to add a button to the image window using "cv::createButton" function, 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)'
It seems that I should specify the parameter "WITH_QT:BOOL=ON", but how could I do this in the "CMakeLists.txt", as the rosmake system may not support the run time parameter specification? Or how should I configure my OpenCV?
I use ROS-Fuerte with Ubuntu 12.04 32bit, the version of OpenCV is
Version: 2.4.2-0precise-20120908-1632-+0000
Thanks for any help!!!!
Any update on this yet? How to work around it, if not?