qt seems broken (Bug #389)
Description
the latest trunk uses qt as default gui library, however on my machine this breaks. I'm having trouble finding what's wrong. everything builds and links fine, but it states its using qt instead of gtk. When i run a simple test like :
Mat im = imread(dirname + "/" + imname); if (im.empty()) { return -1; } namedWindow("window"); imshow("window",im); waitKey(0);
it just runs and exits, and doesn't show a window. No crash per se either. Looking at it in valgrind, qt appears to be overwriting some memory.
Also, for some reason the WITH_QT option does nothing, when i tried to switch it in the CMakeCache.txt
To fix, i had to change the main CMakeLists.txt on line 499
from :
set(AUTOSWITCH_QT 1)#uses to disable QT
to
set(AUTOSWITCH_QT 0)#uses to disable QT
Now it builds with gtk, and the above code runs fine. Is there a specific version of QT to build against?
If you need more details, let me know.
Thanks,
Ethan
os: Ubuntu 10.4 64bit, qt4.x
Associated revisions
Merge pull request #389 from Daniil-Osokin:bugfix_doc_opencv_with_cmake
History
Updated by Vadim Pisarevsky over 14 years ago
with the latest SVN snapshot the above samples runs well; however, there are some other minor glitches, so Qt is disabled by default.
- Status changed from Open to Done
- (deleted custom field) set to fixed
Updated by Andrey Kamaev over 12 years ago
- Category changed from highgui-images to highgui-gui