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 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 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
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on 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
        0
        • SGaistS SGaist

          Hi,

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

          M Offline
          M Offline
          Mark81
          wrote on 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
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on 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
            0
            • SGaistS SGaist

              When you recompiled the module did bluez got found ?

              M Offline
              M Offline
              Mark81
              wrote on last edited by
              #6

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

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on 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

                miclandM 1 Reply Last reply
                0
                • SGaistS SGaist

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

                  miclandM Offline
                  miclandM Offline
                  micland
                  wrote on 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
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on 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

                    miclandM 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      @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.

                      miclandM Offline
                      miclandM Offline
                      micland
                      wrote on 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

                      • Login

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