Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Unknown module(s) in QT: bluetooth

Unknown module(s) in QT: bluetooth

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 4 Posters 2.0k 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.
  • F Offline
    F Offline
    Frysk99
    wrote on last edited by
    #1

    Just started with Qt creator, trying to develop an app on my phone to communicate over bluetooth.

    Anyway, tried some general examples and that goes well also deploying. Tried a bluetooth low energy example from here:
    https://github.com/qt/qtconnectivity/tree/dev/examples/bluetooth/lowenergyscanner

    And from here:
    https://github.com/vedderb/vesc_tool

    But both gave the error:
    :-1: error: Project ERROR: Unknown module(s) in QT: bluetooth positioning androidextras

    When I search on it, almost all the answers are targeting Linux, but I'm using windows:
    Qt Creator 5.0.1
    Based on Qt 5.15.2 (MSVC 2019, 64 bit)

    Built on Sep 14 2021 01:17:14

    From revision 7e965629b0

    Anyone knows how to solve it, it must not be hard, but cannot find directly the answer on google or this forum. Some suggest to install qtconnectivity5-dev, but that is for Linux as for as I know.

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

      Hi and welcome

      Any chance that you are using in fact Qt 6.0 or 6.1 ?
      If so, you should either use Qt 5.15 or 6.2.

      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
      • F Offline
        F Offline
        Frysk99
        wrote on last edited by
        #3

        I thought first this isn't possible because the help->about states Qt version 5.15.2, but when I look at the kits used for compiling for Android it states:
        Qt 6.1.3

        So that would be a possible cause than, I will try to upgrade or downgrade than.

        And thank you for the answer...

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

          The about dialog of Qt Creator gives information about Qt Creator itself, not what you are using to build your application.

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

          jsulmJ 1 Reply Last reply
          1
          • F Frysk99

            I thought first this isn't possible because the help->about states Qt version 5.15.2, but when I look at the kits used for compiling for Android it states:
            Qt 6.1.3

            So that would be a possible cause than, I will try to upgrade or downgrade than.

            And thank you for the answer...

            eyllanescE Offline
            eyllanescE Offline
            eyllanesc
            wrote on last edited by
            #5

            @Frysk99 Recently Qt 6.2 should be introduced QtBluetooth in Qt6 so you could wait (although I do not recommend it since there are probably bugs), see https://www.qt.io/blog/add-on-support-in-qt-6.0-and-beyond. Another option is to use Qt 5(IMO the best option in your case)

            If you want me to help you develop some work then you can write to my email: e.yllanescucho@gmal.com.

            1 Reply Last reply
            0
            • SGaistS SGaist

              The about dialog of Qt Creator gives information about Qt Creator itself, not what you are using to build your application.

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #6

              @SGaist I really think QtCreator devs should add a note to the about dialog that the Qt version shown there is not necesserily the one users use for their projects! So many people think the Qt version shown in about dialog in QtCreator is the one they're using...

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

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Frysk99
                wrote on last edited by Frysk99
                #7

                I went back to an older version, 5.15.2 was in a doubt what to do, found older source code (https://www.qt.io/offline-installers), but I assume you have to build it your self and also configurate. I found an older online installer in which I could select older versions (which was not possible with the newest installer) at:
                https://download.qt.io/archive/online_installers/4.0/

                In this way I thought I don't have the hassle to configurate everything manually. So I uninstalled the current Qt installation and installed 5.15.2, did take a very long time, probably installed more than what was needed, but anyway.

                Noticed that in the examples the bluetooth example was already there and everything worked out of the box!!

                I could connect to my NRF chip. I will try to use BLE Uart to communicate, first find out how to connect button presses to piece's of code and text with received data.

                The emulator I also got working, in project tab I had to select x86 ABI to get the x86 emulator working, the arm version was to slow.

                It goes better than expected, tried Android studio first but that was so overwhelming and I have a little exprerience with Qt. Thanks for the help.

                (I don't know how to get smaller picture's sorry for that ;) )

                Screenshot_20210927-103122.png

                Screenshot_20210927-103140.png

                x86build.png

                jsulmJ 1 Reply Last reply
                0
                • F Frysk99

                  I went back to an older version, 5.15.2 was in a doubt what to do, found older source code (https://www.qt.io/offline-installers), but I assume you have to build it your self and also configurate. I found an older online installer in which I could select older versions (which was not possible with the newest installer) at:
                  https://download.qt.io/archive/online_installers/4.0/

                  In this way I thought I don't have the hassle to configurate everything manually. So I uninstalled the current Qt installation and installed 5.15.2, did take a very long time, probably installed more than what was needed, but anyway.

                  Noticed that in the examples the bluetooth example was already there and everything worked out of the box!!

                  I could connect to my NRF chip. I will try to use BLE Uart to communicate, first find out how to connect button presses to piece's of code and text with received data.

                  The emulator I also got working, in project tab I had to select x86 ABI to get the x86 emulator working, the arm version was to slow.

                  It goes better than expected, tried Android studio first but that was so overwhelming and I have a little exprerience with Qt. Thanks for the help.

                  (I don't know how to get smaller picture's sorry for that ;) )

                  Screenshot_20210927-103122.png

                  Screenshot_20210927-103140.png

                  x86build.png

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Frysk99 said in Unknown module(s) in QT: bluetooth:

                  probably installed more than what was needed

                  You probably selected all flavors of Qt under 5.15.2, only select what you really need.

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

                  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