Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QtDbus windows Qt 5.2.1 MinGW dbus-1.8.0

QtDbus windows Qt 5.2.1 MinGW dbus-1.8.0

Scheduled Pinned Locked Moved General and Desktop
18 Posts 4 Posters 11.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.
  • R Offline
    R Offline
    red_spider
    wrote on last edited by
    #7

    problem with #ifndef QT_NO_DBUS in src....
    I added to the project DEFINES -= QT_NO_DBUS but this does not solve the problem

    @class LibInterfaceAdapter : public QDBusAbstractAdaptor
    {
    Q_OBJECT
    @
    .......
    error: expected class-name before '{' token

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #8

      It means that Qt was build with QT_NO_DBUS, so you will need to rebuild Qt with dbus enabled

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • R Offline
        R Offline
        red_spider
        wrote on last edited by
        #9

        thank you very much for your help,all projects build successful,
        but ... dbus daemon will not start and no connections

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #10

          For that, I would recommend to ask the dbus developers

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            ashishbansal
            wrote on last edited by
            #11

            @red_spider Can you please tell me how can I build DBus module for windows?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #12

              IIRC, the latest version (Qt 5.4) should have the module pre-built, did you check ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              A C 2 Replies Last reply
              0
              • SGaistS SGaist

                IIRC, the latest version (Qt 5.4) should have the module pre-built, did you check ?

                A Offline
                A Offline
                ashishbansal
                wrote on last edited by ashishbansal
                #13

                @SGaist Actually I want it for WinRT specifically. The binary which I obtained from [1] does not contain dbus module. So, I tried building Qt 5.4.1 for WinRT and DBus support is not enabled in the output. I don't know how to enable it. Any parameter to be passed while configuring?

                [1] http://download.qt.io/official_releases/qt/5.4/5.4.1/qt-opensource-windows-x86-winrt-5.4.1.exe
                Thanks

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #14

                  Let's keep the discussion on this thread otherwise it's going to be problematic to keep track of the information

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Hi and welcome to devnet,

                    IIRC, the dbus module is not built on windows by default, you have to do it yourself

                    C Offline
                    C Offline
                    Commanderdonut
                    wrote on last edited by
                    #15
                    This post is deleted!
                    1 Reply Last reply
                    0
                    • SGaistS SGaist

                      IIRC, the latest version (Qt 5.4) should have the module pre-built, did you check ?

                      C Offline
                      C Offline
                      Commanderdonut
                      wrote on last edited by
                      #16

                      @SGaist said:

                      IIRC, the latest version (Qt 5.4) should have the module pre-built, did you check ?

                      Hello,
                      I am using the latest version 5.4 and i am still getting the following error when trying to load one of the dbus examples...

                      "Project ERROR: Unknown module(s) in QT: dbus"

                      I have been seeing other people say that we still have to build it ourselves for 5.4, but i'm also seeing a lot of mixed comments on dbus in general. For a brief time now I've been having issues trying to resolve this problem, so i was wondering if anyone could point me in the right direction for getting the dbus module to work on a Win7 64bit machine

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #17

                        Did you install DBus first ?

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        C 1 Reply Last reply
                        0
                        • SGaistS SGaist

                          Did you install DBus first ?

                          C Offline
                          C Offline
                          Commanderdonut
                          wrote on last edited by Commanderdonut
                          #18

                          @SGaist

                          No i did not, i thought QtDBus.lib was built into Qt 5x

                          Do you know how i would go about doing that on a windows machine at the DBus website they say the windows port is merged into the freedesktop dbus development branch but the link to their github is broken and the only available downloads that i can see are for linux.

                          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