qt seems broken (Bug #389)


Added by Ethan Rublee over 14 years ago. Updated over 12 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:- % Done:

0%

Category:highgui-gui
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision acb2cb5b
Added by Andrey Kamaev about 12 years ago

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

Also available in: Atom PDF