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. Qt Creator tool setup for Android and serialport example.
QtWS25 Last Chance

Qt Creator tool setup for Android and serialport example.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 1.9k 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.
  • H Offline
    H Offline
    HeyBirdie
    wrote on 22 Mar 2019, 10:37 last edited by HeyBirdie
    #1

    Hello,

    I am a noob in Qt and trying to setup Qt Creator IDE for Android apps development. After IDE config I tried to compile the blocking slave serial port communication example but getting some errors right at the beginning. I attach couple pictures. Can this example be deployed to Android? If not, does anybody have a hint where to start with USB serial port communication for Android? If yes, how do I need to setup the IDE for supporting this example I mentioned above?

    0_1553250860826_winrtrunner_missing.PNG

    0_1553250896236_NDK_SDK_JDK_OK.PNG 0_1553250914843_Kits_Sets.PNG 0_1553250943479_Kits_Debuggers.PNG 0_1553250952285_Kits_QtVersions.PNG 0_1553251209448_Kits_Compilers.PNG

    Thanks in advance for any inputs.

    Cheers,
    Jan

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on 22 Mar 2019, 16:27 last edited by kuzulis
      #2

      QSP is not supported on Android (and as on iOS).

      H 1 Reply Last reply 24 Mar 2019, 19:41
      1
      • K kuzulis
        22 Mar 2019, 16:27

        QSP is not supported on Android (and as on iOS).

        H Offline
        H Offline
        HeyBirdie
        wrote on 24 Mar 2019, 19:41 last edited by HeyBirdie
        #3

        @kuzulis How come for Qt v5.12.2 there are Serial Port examples listed under Android ARMv7, Android x86 or even Android ARM64-v8a.. whatever I select?
        0_1553457065035_SerialPortExamples.PNG

        J 1 Reply Last reply 25 Mar 2019, 06:59
        0
        • H Offline
          H Offline
          HeyBirdie
          wrote on 24 Mar 2019, 20:46 last edited by
          #4

          @kuzulis OK, I went through many posts and it really seems that the only way is using Java. Thank you for a quick response!

          1 Reply Last reply
          1
          • K Offline
            K Offline
            kuzulis
            Qt Champions 2020
            wrote on 25 Mar 2019, 06:55 last edited by kuzulis
            #5

            @HeyBirdie said in Qt Creator tool setup for Android and serialport example.:

            it really seems that the only way is using Java

            No, no any way. Android has not API to access to the serial ports.

            There are only tricks to use a 'direct' USB access (direct read/write to the USB endpoints) in case you have an USB/Serial adapter (need to use JAVA).

            Besides, if your Android device is rooted, then you can try to use QSP there. You need then or open serial ports with root rights, or to change the 'startup' scripts to give to an serial port the user access (chmod or something else). For this you need to build QSP himself.

            1 Reply Last reply
            1
            • H HeyBirdie
              24 Mar 2019, 19:41

              @kuzulis How come for Qt v5.12.2 there are Serial Port examples listed under Android ARMv7, Android x86 or even Android ARM64-v8a.. whatever I select?
              0_1553457065035_SerialPortExamples.PNG

              J Offline
              J Offline
              J.Hilk
              Moderators
              wrote on 25 Mar 2019, 06:59 last edited by
              #6

              @HeyBirdie that's a mistake, QSerialPort is technically possible with android but you would need a rooted device in the first place.

              You can still enable the support for android, but you will have to compile Qt yourself for that.


              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.

              1 Reply Last reply
              1
              • K Offline
                K Offline
                kuzulis
                Qt Champions 2020
                wrote on 25 Mar 2019, 07:05 last edited by
                #7

                @J.Hilk said in Qt Creator tool setup for Android and serialport example.:

                chnically possible with android but you would need a rooted devic

                Oops, yes, I updated my post.

                PS: But, IMHO, it is 'no way' in a common case (its only for geeks). :)

                1 Reply Last reply
                1

                6/7

                25 Mar 2019, 06:59

                • Login

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