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. Qt5.2 - Android serialport

Qt5.2 - Android serialport

Scheduled Pinned Locked Moved Mobile and Embedded
4 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.
  • A Offline
    A Offline
    atilalms
    wrote on last edited by
    #1

    Hi, everyone!

    In a lot of forums, we can see about the serialport on Android. Most of them speak that in Qt5.2, the serialport would be implemented, but as we can see, it doesn't work. When I configure my .pro file with QT+= serialport, the compiler gives me an error.

    Anyone can help me? I am making some mistakes or the serialport wasn't implemented yet?

    Thank you all!

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on last edited by
      #2

      Hi.

      Seems that QtSerialPort package for Android do not provided by the Qt installer (as addons options). So, you should manually build and install the QtSerialPort module into your Android's Qt instance.
      I recommend to make it (build and install) by means of QtCreator, as it is says in "WIKI":http://qt-project.org/wiki/QtSerialPort#e290b0f84383a96ecdf7f6b720b72092. It is the simplest method.

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kangqf
        wrote on last edited by
        #3

        I had used QtSerialPort for desktop but have not use it in android platform. I just want to have a try,so have you use the QML? I relise QML can support android very well.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          atilalms
          wrote on last edited by
          #4

          I try to install the QtSerialPort and I follow step by step the Wiki link, but the error persists.

          When I try to Run my Project on the Desktop kit, it Works. But when I try to do it in Android, it doesn't.

          I will try to install on Linux tomorrow.

          Thanks!

          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