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
Forum Updated to NodeBB v4.3 + New Features

QtBluetooth on Windows not working

Scheduled Pinned Locked Moved Solved General and Desktop
bluetoothwindows 10
15 Posts 6 Posters 5.8k Views 2 Watching
  • 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.
  • 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

                      15/15

                      21 Aug 2018, 09:53

                      • Login

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