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. Porting Qt5 Android applications in Qt6
QtWS25 Last Chance

Porting Qt5 Android applications in Qt6

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
6 Posts 4 Posters 306 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.
  • M Offline
    M Offline
    mrdebug
    wrote on 15 Jan 2025, 15:30 last edited by
    #1

    Hi, I'm new in Qt6. This afternoon I tried to build an Android test app but Qt6 does not have androidextras module.
    I use often Android native code so, with is the new way to manage it?
    Can someone provide a Qt6 example with native code usage?
    Best regards.

    Need programmers to hire?
    www.labcsp.com
    www.denisgottardello.it
    GMT+1
    Skype: mrdebug

    J E 2 Replies Last reply 15 Jan 2025, 17:28
    0
    • M mrdebug
      15 Jan 2025, 15:30

      Hi, I'm new in Qt6. This afternoon I tried to build an Android test app but Qt6 does not have androidextras module.
      I use often Android native code so, with is the new way to manage it?
      Can someone provide a Qt6 example with native code usage?
      Best regards.

      J Offline
      J Offline
      JoeCFD
      wrote on 15 Jan 2025, 17:28 last edited by
      #2

      @mrdebug said in Porting Qt5 Android applications in Qt6:

      androidextras

      https://www.qt.io/blog/qt-extras-modules-in-qt-6

      1 Reply Last reply
      0
      • P Do not disturb
        P Do not disturb
        piervalli
        wrote on 15 Jan 2025, 18:34 last edited by
        #3

        @mrdebug checks the QtAndroidTools, it works for Qt6

        https://github.com/FalsinSoft/QtAndroidTools/tree/master/QtAndroidTools

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mrdebug
          wrote on 16 Jan 2025, 08:56 last edited by
          #4

          Many thanks, I'll check it.
          After a first check Qt6 seems to be non available for Android 8 and armeabi-v7a. The last Qt5 release for Android is a multi abi package and permits to release an app for both armeabi-v7a and arm64-v8a and it works perfectly on Android 8 and the recent one.
          An app based on Qt6 seems to be not supported by Android 8. If I try to run an empty app I obtain the error

          java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "getentropy" referenced by "/data/app/org.qtproject.example.untitled-2V6ErpMC1aXLweMdkdx7gQ==/lib/arm/libQt6Core_armeabi-v7a.so"...

          Need programmers to hire?
          www.labcsp.com
          www.denisgottardello.it
          GMT+1
          Skype: mrdebug

          J 1 Reply Last reply 16 Jan 2025, 15:50
          0
          • M mrdebug
            16 Jan 2025, 08:56

            Many thanks, I'll check it.
            After a first check Qt6 seems to be non available for Android 8 and armeabi-v7a. The last Qt5 release for Android is a multi abi package and permits to release an app for both armeabi-v7a and arm64-v8a and it works perfectly on Android 8 and the recent one.
            An app based on Qt6 seems to be not supported by Android 8. If I try to run an empty app I obtain the error

            java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "getentropy" referenced by "/data/app/org.qtproject.example.untitled-2V6ErpMC1aXLweMdkdx7gQ==/lib/arm/libQt6Core_armeabi-v7a.so"...

            J Offline
            J Offline
            JoeCFD
            wrote on 16 Jan 2025, 15:50 last edited by JoeCFD
            #5

            @mrdebug the current Android version is 15. Android 8 is quite old. Any reason why Qt6 is needed for Android 8?

            1 Reply Last reply
            0
            • M mrdebug
              15 Jan 2025, 15:30

              Hi, I'm new in Qt6. This afternoon I tried to build an Android test app but Qt6 does not have androidextras module.
              I use often Android native code so, with is the new way to manage it?
              Can someone provide a Qt6 example with native code usage?
              Best regards.

              E Offline
              E Offline
              ekkescorner
              Qt Champions 2016
              wrote on 17 Jan 2025, 11:06 last edited by
              #6

              @mrdebug said in Porting Qt5 Android applications in Qt6:

              Hi, I'm new in Qt6. This afternoon I tried to build an Android test app but Qt6 does not have androidextras module.
              I use often Android native code so, with is the new way to manage it?

              there are some more changes for Android porting apps from 5 to 6:
              https://ekkesapps.wordpress.com/qt-6-qmake/qjniproject-android-extras/
              my pages are work-in-progress - as soon as 6.8.2 is out, I'll go on with my ports from 5.15 to 6.8 and QMake to CMake and blog about. also next months my example apps (sharing, BT >Le, ...) will be re-written
              stay tuned

              ekke ... Qt Champion 2016 | 2024 ... mobile business apps
              5.15 --> 6.8 https://t1p.de/ekkeChecklist
              QMake --> CMake https://t1p.de/ekkeCMakeMobileApps

              1 Reply Last reply
              0

              5/6

              16 Jan 2025, 15:50

              • Login

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