Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtConnectivity with Bluez compiled from sources
QtWS25 Last Chance

QtConnectivity with Bluez compiled from sources

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
bluetoothqtconnectivitycompiling qt
10 Posts 3 Posters 3.5k 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
    Mark81
    wrote on 17 Jun 2016, 10:06 last edited by
    #1

    QtConnectivity compiles successfully but with the "dummy backend".
    Usually one must install the development packages for bluez, but I compiled it from sources.

    How can I "tell" this to Qt5?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      Mark81
      wrote on 17 Jun 2016, 12:30 last edited by
      #2

      I found the bluez.pc file is created during compilation but for some reasons is not installed. I manually copied it to /usr/lib/pkg-config/. Now pkg-config --modversion bluez finds it and it seems the test of qtconnectivity are ok.

      But the warning about the dummy backend is still there...

      1 Reply Last reply
      0
      • S Offline
        S Offline
        SGaist
        Lifetime Qt Champion
        wrote on 17 Jun 2016, 22:05 last edited by SGaist
        #3

        Hi,

        Did you rebuild the module from scratch once your installed bluez ?

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

        M 1 Reply Last reply 19 Jun 2016, 07:35
        0
        • S SGaist
          17 Jun 2016, 22:05

          Hi,

          Did you rebuild the module from scratch once your installed bluez ?

          M Offline
          M Offline
          Mark81
          wrote on 19 Jun 2016, 07:35 last edited by
          #4

          @SGaist yes I did, but I've ended up to rebuild ALL. Perhaps make clean in the submodule directory wasn't enough?

          1 Reply Last reply
          0
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 19 Jun 2016, 20:35 last edited by
            #5

            When you recompiled the module did bluez got found ?

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

            M 1 Reply Last reply 26 Jun 2016, 11:16
            0
            • S SGaist
              19 Jun 2016, 20:35

              When you recompiled the module did bluez got found ?

              M Offline
              M Offline
              Mark81
              wrote on 26 Jun 2016, 11:16 last edited by
              #6

              @SGaist There were no explicit messages, they seems to appear only during the configuration step.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                SGaist
                Lifetime Qt Champion
                wrote on 26 Jun 2016, 20:49 last edited by
                #7

                AFAIK, yes, the detection is done when you configure the module.

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

                M 1 Reply Last reply 28 Jun 2016, 08:31
                0
                • S SGaist
                  26 Jun 2016, 20:49

                  AFAIK, yes, the detection is done when you configure the module.

                  M Offline
                  M Offline
                  micland
                  wrote on 28 Jun 2016, 08:31 last edited by
                  #8

                  @SGaist said:

                  AFAIK, yes, the detection is done when you configure the module.

                  Unfortunately not. The configure script only checks the dependencies of qtbase. bluez is detected when running qmake for qtconnectivity and will print out a the little message Unsupported bluetooth platform, will not build a working QtBluetooth library if bluez was not found...

                  1 Reply Last reply
                  0
                  • S Offline
                    S Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 28 Jun 2016, 08:50 last edited by
                    #9

                    @micland good point, I was thinking about the checking phase that is done when qmake is run on the module. One of the most visible for that being qtmultimedia.

                    A side note, IIRC if you re-run qmake on an already "configured" module, the detection won't be done again. You have to delete the .qmake.cache file to have it happening again or just nuke the folder and start from a clean state.

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

                    M 1 Reply Last reply 28 Jun 2016, 09:21
                    0
                    • S SGaist
                      28 Jun 2016, 08:50

                      @micland good point, I was thinking about the checking phase that is done when qmake is run on the module. One of the most visible for that being qtmultimedia.

                      A side note, IIRC if you re-run qmake on an already "configured" module, the detection won't be done again. You have to delete the .qmake.cache file to have it happening again or just nuke the folder and start from a clean state.

                      M Offline
                      M Offline
                      micland
                      wrote on 28 Jun 2016, 09:21 last edited by
                      #10

                      @SGaist
                      Ah right - "configure" is ambiguous due to the two step configuration, once by the configure script for qtbase and once by the qmake for the other modules.
                      This is not so obviously that the summary of the configure script does not warn about disabled features in submodules due to missing dependencies.

                      1 Reply Last reply
                      0

                      10/10

                      28 Jun 2016, 09:21

                      • Login

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