[Interest] "-glib" has no effect?

Thiago Macieira thiago.macieira at intel.com
Fri Feb 20 02:53:56 CET 2015


On Friday 20 February 2015 03:37:39 Nikos Chantziaras wrote:
> I've built Qt 4.8.6 for windows (with mingw cross compiler from Linux)
> and configured with with "-glib", since from what I can tell and find on
> the net, by default the Windows binaries are built with "-no-glib".
> 
> However, it doesn't seem to have any effect. The glib event loop is not
> being iterated, so gstreamer just freezes when trying to play video.
> 
> How do I get this to work correctly?

You don't. The Windows event dispatcher is independent of glib and cannot run 
it. I don't think GMainLoop even has the ability to attach WinSock sockets and 
Windows HANDLEs. All I can see in its API are source for idle, timers and Unix 
file descriptors.

If you really need glib, start a thread and give it to glib, remembering the 
constraints about not using QWidget outside the Qt GUI thread.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list