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. QtBluetooth on Windows not working
QtWS25 Last Chance

QtBluetooth on Windows not working

Scheduled Pinned Locked Moved Solved General and Desktop
bluetoothwindows 10
15 Posts 6 Posters 5.7k 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.
  • E Offline
    E Offline
    elsa
    wrote on 16 Aug 2018, 12:55 last edited by
    #1

    I am making a QtBluetooth app to connect two laptops. It produces this error on both devices:

    qt.bluetooth: Dummy backend running. Qt Bluetooth module is non-functional.
    

    To test the problem I ran the Bluetooth Chat Example. It ran on one of them and produced above mentioned error on the other. What could be the problem here?
    Both devices run Windows 10 Pro Version1709 and Qt 5.11.1.
    Thank you!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sierdzio
      Moderators
      wrote on 16 Aug 2018, 13:33 last edited by
      #2

      I've had the same issue just a few days ago. You need to use MSVC compiler instead of MinGW, then it works.

      Well, kind of works because BT support on Windows is very weak.

      (Z(:^

      J E 2 Replies Last reply 16 Aug 2018, 13:52
      6
      • S sierdzio
        16 Aug 2018, 13:33

        I've had the same issue just a few days ago. You need to use MSVC compiler instead of MinGW, then it works.

        Well, kind of works because BT support on Windows is very weak.

        J Offline
        J Offline
        J.Hilk
        Moderators
        wrote on 16 Aug 2018, 13:52 last edited by J.Hilk
        #3

        @sierdzio said in QtBluetooth on Windows not working:

        Well, kind of works because BT support on Windows is very weak.

        What a kind way to phrase that, not what would come to my mind.....

        Also, the success of QtBluetooth highly relys on the Windows version, I would recommand upgrading to the lastest one possible.


        Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


        Q: What's that?
        A: It's blue light.
        Q: What does it do?
        A: It turns blue.

        S 1 Reply Last reply 16 Aug 2018, 14:54
        2
        • J J.Hilk
          16 Aug 2018, 13:52

          @sierdzio said in QtBluetooth on Windows not working:

          Well, kind of works because BT support on Windows is very weak.

          What a kind way to phrase that, not what would come to my mind.....

          Also, the success of QtBluetooth highly relys on the Windows version, I would recommand upgrading to the lastest one possible.

          S Offline
          S Offline
          sierdzio
          Moderators
          wrote on 16 Aug 2018, 14:54 last edited by
          #4

          @J.Hilk said in QtBluetooth on Windows not working:

          @sierdzio said in QtBluetooth on Windows not working:

          Well, kind of works because BT support on Windows is very weak.

          What a kind way to phrase that, not what would come to my mind.....

          Heh, yeah, the sentence you read is not the first one I wrote :P Although in my recent experience, Windows itself is also not particularly good with bluetooth, especially Low Energy variety.

          Also, the success of QtBluetooth highly relys on the Windows version, I would recommand upgrading to the lastest one possible.

          Indeed. Different versions of Windows 10 work differently, Windows 8.1 comes with extra bunch of crashes...

          (Z(:^

          1 Reply Last reply
          0
          • A Offline
            A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on 16 Aug 2018, 20:44 last edited by
            #5

            To be fair, there is a lot of work ongoing to improve the Windows/Bluetooth experience.

            See https://codereview.qt-project.org/#/q/status:merged+branch:wip/win,n,z for reference. However, this branch is not ready for production yet, but can already be compiled from end-users for testing purpose.

            Regards

            Qt has to stay free or it will die.

            1 Reply Last reply
            4
            • S Offline
              S Offline
              sierdzio
              Moderators
              wrote on 17 Aug 2018, 06:45 last edited by
              #6

              That's great! Thanks for the info, @aha_1980 !

              (Z(:^

              1 Reply Last reply
              1
              • S sierdzio
                16 Aug 2018, 13:33

                I've had the same issue just a few days ago. You need to use MSVC compiler instead of MinGW, then it works.

                Well, kind of works because BT support on Windows is very weak.

                E Offline
                E Offline
                elsa
                wrote on 20 Aug 2018, 14:16 last edited by
                #7

                @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

                J S 2 Replies Last reply 21 Aug 2018, 04:57
                0
                • E elsa
                  20 Aug 2018, 14:16

                  @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

                  J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 21 Aug 2018, 04:57 last edited by
                  #8

                  @elsa said in QtBluetooth on Windows not working:

                  tell me how to set up the MSVC compiler?

                  Did you already install Visual Studio or Microsoft Build Tools and Qt for Visual Studio?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  1
                  • E elsa
                    20 Aug 2018, 14:16

                    @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

                    S Offline
                    S Offline
                    sierdzio
                    Moderators
                    wrote on 21 Aug 2018, 06:31 last edited by
                    #9

                    @elsa said in QtBluetooth on Windows not working:

                    @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

                    In short, it's simple:

                    • download and install Microsof Visual Studio (it's free nowadays), make sure to check C++ download option (you don't need any of the rest: .Net, embedded, other platforms, Python and whatnot)
                    • open Qt Maintenance Tool and add MSVC 2017 package for your Qt version
                    • that's it, Qt Creator should now recognize that version, you just need to select it for your project in project settings

                    (Z(:^

                    E 1 Reply Last reply 21 Aug 2018, 08:21
                    5
                    • S sierdzio
                      21 Aug 2018, 06:31

                      @elsa said in QtBluetooth on Windows not working:

                      @sierdzio could you please tell me how to set up the MSVC compiler? When I try to build my program with it, it says "Could not find the executable, plesase specify one" and gives a lineEdit to browse. so with path do i have to state?

                      In short, it's simple:

                      • download and install Microsof Visual Studio (it's free nowadays), make sure to check C++ download option (you don't need any of the rest: .Net, embedded, other platforms, Python and whatnot)
                      • open Qt Maintenance Tool and add MSVC 2017 package for your Qt version
                      • that's it, Qt Creator should now recognize that version, you just need to select it for your project in project settings
                      E Offline
                      E Offline
                      elsa
                      wrote on 21 Aug 2018, 08:21 last edited by
                      #10

                      @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

                      S M 2 Replies Last reply 21 Aug 2018, 08:28
                      0
                      • E elsa
                        21 Aug 2018, 08:21

                        @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

                        S Offline
                        S Offline
                        sierdzio
                        Moderators
                        wrote on 21 Aug 2018, 08:28 last edited by
                        #11

                        @elsa said in QtBluetooth on Windows not working:

                        @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

                        Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)

                        (Z(:^

                        J 1 Reply Last reply 21 Aug 2018, 08:34
                        2
                        • S sierdzio
                          21 Aug 2018, 08:28

                          @elsa said in QtBluetooth on Windows not working:

                          @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

                          Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)

                          J Offline
                          J Offline
                          J.Hilk
                          Moderators
                          wrote on 21 Aug 2018, 08:34 last edited by
                          #12

                          @sierdzio said in QtBluetooth on Windows not working:

                          Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)

                          I may be of help here :)

                          @elsa
                          IIRC MSVC installation does not come automatically with the c++ debuger.
                          You'll need to download and install the Windows Software Developer Kit

                          to be found here, I think. It's been a while when I installed it.
                          https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk


                          Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                          Q: What's that?
                          A: It's blue light.
                          Q: What does it do?
                          A: It turns blue.

                          E 1 Reply Last reply 21 Aug 2018, 09:06
                          4
                          • E elsa
                            21 Aug 2018, 08:21

                            @sierdzio thank you for your answer. Now it's being detected successfully. However, when I run debug mode it produces "unexpected CDB Exit: The CDB process terminated". Do you know what might be the cause? I have researched this a bit but did not reach any solution yet.

                            M Offline
                            M Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on 21 Aug 2018, 08:34 last edited by mrjj
                            #13

                            @elsa
                            Hi
                            Can be many reasons
                            https://forum.qt.io/topic/69130/unexpected-cdb-exit

                            Also, are you using Creator Or Visual Studio to run it?

                            Ahh, @J-Hilk beat me to it :)
                            You might need the standalone debugger if running from Creator.

                            1 Reply Last reply
                            4
                            • J J.Hilk
                              21 Aug 2018, 08:34

                              @sierdzio said in QtBluetooth on Windows not working:

                              Apart from knowing that CDB is the MSVC debugger I know nothing about it, sorry ;-)

                              I may be of help here :)

                              @elsa
                              IIRC MSVC installation does not come automatically with the c++ debuger.
                              You'll need to download and install the Windows Software Developer Kit

                              to be found here, I think. It's been a while when I installed it.
                              https://developer.microsoft.com/en-US/windows/downloads/windows-10-sdk

                              E Offline
                              E Offline
                              elsa
                              wrote on 21 Aug 2018, 09:06 last edited by
                              #14

                              @J.Hilk @mrjj thank you for your answers. I already had an SDK installed. I reinstalled it, but the error remains :/ could it be some version mismatch? How can I check this?

                              M 1 Reply Last reply 21 Aug 2018, 09:53
                              0
                              • E elsa
                                21 Aug 2018, 09:06

                                @J.Hilk @mrjj thank you for your answers. I already had an SDK installed. I reinstalled it, but the error remains :/ could it be some version mismatch? How can I check this?

                                M Offline
                                M Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on 21 Aug 2018, 09:53 last edited by
                                #15

                                @elsa
                                Check the kits and see if any red marks.

                                1 Reply Last reply
                                1

                                7/15

                                20 Aug 2018, 14:16

                                • Login

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