Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. GLib based event dispatcher: how to compile it from QT Everywhere source code?

GLib based event dispatcher: how to compile it from QT Everywhere source code?

Scheduled Pinned Locked Moved Mobile and Embedded
17 Posts 5 Posters 10.2k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    marcus_cps
    wrote on last edited by
    #6

    Volker,

    I intend to grab those 2 files and do so, preserving the license restrictions and anything else.
    However those files have references to lots of other files from the QT source code.
    I believe I'm going to have trouble to compile this code by myself because QT Makefiles use a lot of pre-processor definitions (-D) and this kind of stuff (configure script and related).
    I thought there would be a better way to do that.

    Tobias,

    I'll have a look at IIRC. Thanks for the suggestion.
    I'm having trouble to find information regarding QT embedded details (event loop details, for instance).
    Do you know whether GLib based event loop is default in Embedded QT (QWS and non QWS) or not?
    Don't worry about lincense issues. I'll preserve that.

    Thanks very much for both of you.

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #7

      http://labs.qt.nokia.com/2006/02/24/qt-and-glib/ is the first hit on google for Qt and glib.

      1 Reply Last reply
      0
      • M Offline
        M Offline
        marcus_cps
        wrote on last edited by
        #8

        Tobias, I know that.
        That was my start point on this issue. Unfortunely, it doesn't say how to do that.
        I tried to find some literature that explains how to implement a QAbstractEventDispatcher, but I couldn't find some.
        I tried to check the QT source code for the default Event Dispatcher... it might give some clue on how to do that, that was how I found the files I mentined above.
        The problem is that those files seems to have a lot of dependencies in the QT source code and I'm having trouble to understand how to deal with them.
        Do you know where can I find something to help me out?

        Thanks very much.

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tobias.hunger
          wrote on last edited by
          #9

          I do not understand your problem then.

          As far as I know (but I am no expert in this area) Qt uses the glib event loop by default. So why do you need to write a event dispatcher yourself?

          The files you reference are internal to Qt. That is what the warning says: Do not use this, we will change it whenever we need to. We make no guarantees about any of the APIs implemented in those files. So if you decide to use those files anyway, your application may break on the next upgrade of Qt.

          That does not say that the APIs are not used internally inside Qt. In fact that event dispatcher should be the one used in Qt on Linux. But again: I am no expert in this area, so I might be wrong.

          1 Reply Last reply
          0
          • M Offline
            M Offline
            marcus_cps
            wrote on last edited by
            #10

            Tobias,

            I have contacted the platform development team asking for a recompiled version of the Embedded QT libs with glib support. I believe the -glib configuration option does the magic (uses that dispatcher as the default one).

            It is really hard to find information regarding this kind of stuff.
            Maybe the the developers of the platform I'm using have some support directly from QT Team on that.
            This is what makes me a little more confident about it.

            Right now, this is absolutely necessary to make my project possible.

            I'll post here any proggress on this issue.

            Thanks very much.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              marcus_cps
              wrote on last edited by
              #11

              Looks like my QT libs are already compiled with GLib support (the -glib option is default).

              I though QT would run a GLib based (GMainContext + GMainLoop) Event Dispatcher when Glib support is enabled. But it doesn't seem to be true. If the GMainLoop was running, my DBus communication would be ok, and it is not.

              Now I have no clue what exactly means GLib support for QT.

              1 Reply Last reply
              0
              • A Offline
                A Offline
                andre
                wrote on last edited by
                #12

                Perhaps you can ask around on IRC. On the freenode network, you can use the #qt channel. If you don't get anything useful there, you might want to ask and see if you can get answer on the #qt-labs channel. Lots of Qt devs hang out there, but it is not geared towards helping end users. Still, if you come up with an interesting question and you could not get that answered elsewhere, you might get lucky. First try in #qt though!

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  marcus_cps
                  wrote on last edited by
                  #13

                  Thanks very much Andre. I'll try it!

                  1 Reply Last reply
                  0
                  • A Offline
                    A Offline
                    aawn.dk
                    wrote on last edited by
                    #14

                    Hi Marcus

                    I am trying to do the exact same thing...

                    How did this turn out for you? Have you solved the problem or found some hints else where.

                    --
                    Allan W. Nielsen

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      marcus_cps
                      wrote on last edited by
                      #15

                      Hi Allan,

                      After a lot of trying, I gave up using the QT GLib based event loop.
                      I end up writing my own solution to replace the Glib based library I was using before.
                      I was using DBus and wrote a custom IPC system based on sockets. It works really well, BTW.

                      Even though, I'm really interested in learning how to use the GLib based loop.
                      If you manage to do that, please post your solution here. It would be useful to all other users too.

                      Thanks.

                      1 Reply Last reply
                      0
                      • A Offline
                        A Offline
                        aawn.dk
                        wrote on last edited by
                        #16

                        Hi

                        I will post a how-to if I can get it up and running. But as I already have spend too much time on this, you should not expect anything.

                        --
                        Allan

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          marcus_cps
                          wrote on last edited by
                          #17

                          Don't worry.
                          If you managed to do that, someone else may find that useful!
                          I've already found other ways! :D
                          Thanks!

                          1 Reply Last reply
                          0

                          • Login

                          • Login or register to search.
                          • First post
                            Last post
                          0
                          • Categories
                          • Recent
                          • Tags
                          • Popular
                          • Users
                          • Groups
                          • Search
                          • Get Qt Extensions
                          • Unsolved