qt - Gtk-WARNING **: gtk_disable_setlocale() must be called before gtk_init() -
whenever use opencv's cv::imshow
alongside qt's qapplication
, error:
gtk-warning **: gtk_disable_setlocale() must called before gtk_init()
i did searching , ended reading more , more stuff don't understand, got ideas how opencv , gtk+ connected. , since warning instruction call before something, included gtk.h
, called gtk_disable_setlocale()
, ended more errors.
my code runs despite warning without problem, bugs me! , assume behind warning, there essential stuff programmer should understand. maybe can explain whole thing in way advanced newbie can understand? ;)
edit: i'm using ubuntu 12.10, opencv 2.4, gtk 2.24.13 , qmake -v
tells me
qmake version 2.01a using qt version 4.8.3 in /usr/lib/x86_64-linux-gnu
if going use qt windowing system, it's best avoid creating opencv windows alongside qt windows.
convert iplimage
or cv::mat
qimage
, draw on qt window. check cvimage, simple qt/opencv example displays image loaded opencv on qt window, , shows rgb values of pixel based on mouse coordinates.