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 6.2.1 QAndroidService No such file or directory
Forum Updated to NodeBB v4.3 + New Features

Qt 6.2.1 QAndroidService No such file or directory

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 2 Posters 777 Views 1 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.
  • G Offline
    G Offline
    Galbarad
    wrote on last edited by
    #1

    Hi, all)
    just upgraded to Qt 6.2.1 and have problem from subject)
    can't include QAndroidService in main.cpp
    QT += core // added
    but
    #include <QAndroidService>
    still not working(
    any advice?
    thanks

    1 Reply Last reply
    0
    • G Offline
      G Offline
      Galbarad
      wrote on last edited by
      #2

      perhaps file available only for android and I should use some ifdef for exclude line from code for Windows?

      KroMignonK 1 Reply Last reply
      0
      • G Galbarad

        perhaps file available only for android and I should use some ifdef for exclude line from code for Windows?

        KroMignonK Offline
        KroMignonK Offline
        KroMignon
        wrote on last edited by
        #3

        @Galbarad said in Qt 6.2.1 QAndroidService No such file or directory:

        perhaps file available only for android and I should use some ifdef for exclude line from code for Windows?

        Of course it is Android only
        Please add #ifdef Q_OS_ANDROID around all android specific code!

        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

        1 Reply Last reply
        4
        • G Offline
          G Offline
          Galbarad
          wrote on last edited by
          #4

          already did)
          thanks for confirming)

          1 Reply Last reply
          1
          • G Offline
            G Offline
            Galbarad
            wrote on last edited by
            #5

            try to build version for android but QAndroidService still unavailable(

            1 Reply Last reply
            0
            • G Offline
              G Offline
              Galbarad
              wrote on last edited by Galbarad
              #6

              looks like related with
              https://bugreports.qt.io/browse/QTBUG-98000
              https://doc-snapshots.qt.io/qt6-dev/extras-changes-qt6.html#changes-to-qt-android-extras

              KroMignonK 1 Reply Last reply
              0
              • G Galbarad

                looks like related with
                https://bugreports.qt.io/browse/QTBUG-98000
                https://doc-snapshots.qt.io/qt6-dev/extras-changes-qt6.html#changes-to-qt-android-extras

                KroMignonK Offline
                KroMignonK Offline
                KroMignon
                wrote on last edited by KroMignon
                #7

                @Galbarad said in Qt 6.2.1 QAndroidService No such file or directory:

                looks like related with

                Or simply take a look at QAndroidService for Qt 6 documentation => https://doc.qt.io/qt-6/android-services.html
                You will find all you need to create an Android service with Qt 6 ;)

                It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

                G 1 Reply Last reply
                0
                • KroMignonK KroMignon

                  @Galbarad said in Qt 6.2.1 QAndroidService No such file or directory:

                  looks like related with

                  Or simply take a look at QAndroidService for Qt 6 documentation => https://doc.qt.io/qt-6/android-services.html
                  You will find all you need to create an Android service with Qt 6 ;)

                  G Offline
                  G Offline
                  Galbarad
                  wrote on last edited by
                  #8

                  @KroMignon yep I saw this doc
                  but i had problem with including QAndroidService in my cpp code
                  but after adding
                  QT += core-private
                  and using
                  #include <QtCore/private/qandroidextras_p.h>
                  instead of
                  #include <QAndroidService>
                  project start compile

                  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