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. Cannot build any Qt application on Android with QT 6.5
Forum Updated to NodeBB v4.3 + New Features

Cannot build any Qt application on Android with QT 6.5

Scheduled Pinned Locked Moved Solved Mobile and Embedded
13 Posts 2 Posters 983 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.
  • P Patar

    Description
    Windows 11
    QT Creator 12.0.2
    Device : Google Pixel 6 Pro
    Android : 9

    Error : App crashes immediately after launch.
    ceddef1b-290e-4e73-b95e-e35d20cea296-image.png

    I ple.andddddddd: Late-enabling -Xcheck:jni
    W ple.andddddddd: Unexpected CPU variant for X86 using defaults: x86
    W System  : ClassLoader referenced unknown path:
    W ple.andddddddd: Accessing hidden method Landroid/content/ContextWrapper;->getDisplay()Landroid/view/Display; (light greylist, linking)
    D OpenGLRenderer: HWUI GL Pipeline
    E AndroidRuntime: FATAL EXCEPTION: qtMainLoopThread
    E AndroidRuntime: Process: org.qtproject.example.anddddddddd, PID: 4347
    E AndroidRuntime: java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__emutls_get_address" referenced by "/data/app/org.qtproject.example.anddddddddd-U6018tN9aFQyu3Mkmv78UQ==/lib/x86/libQt6Core_x86.so"...
    E AndroidRuntime: 	at java.lang.Runtime.load0(Runtime.java:928)
    E AndroidRuntime: 	at java.lang.System.load(System.java:1633)
    E AndroidRuntime: 	at org.qtproject.qt.android.QtNative$2.run(QtNative.java:229)
    E AndroidRuntime: 	at org.qtproject.qt.android.QtThread$2.run(QtThread.java:51)
    E AndroidRuntime: 	at org.qtproject.qt.android.QtThread$1.run(QtThread.java:25)
    E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:764)
    

    I dont know why my Application cant work in AVD, Immediately crash after open it, it have android 9 using 26 NDK and JDK 19 and build with x86

    i already searching info like in https://bugreports.qt.io/browse/QTBUG-119059 but that not work, any idea ?

    17f415b8-3ab4-4c05-ae2e-ea77c59e3bb0-image.png

    its just a simple program who give some label and push button

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

    @Patar said in Cannot build any Qt application on Android with QT 6.5:

    Device : Google Pixel 6 Pro

    This device is an ARM device, not x86

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

    P 1 Reply Last reply
    0
    • jsulmJ jsulm

      @Patar said in Cannot build any Qt application on Android with QT 6.5:

      Device : Google Pixel 6 Pro

      This device is an ARM device, not x86

      P Offline
      P Offline
      Patar
      wrote on last edited by Patar
      #3

      @jsulm how do you differentiate the arm and 86 ? because the android i build is 86 i think from this photo
      04551fb6-442d-4832-8a12-10bf49758333-image.png

      i try with arm64 but its cant be deployed
      09382854-b550-44e3-8254-7ee1f50f2484-image.png

      1 Reply Last reply
      0
      • jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #4

        OK, emulator device is indeed x86.
        You could try with the latest Qt6 release to see whether it works.
        I'm not sure about this part: /lib/x86/libQt6Core_x86.so Can you show your Qt configuration for Android in the Kit you're using?

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

        P 1 Reply Last reply
        0
        • jsulmJ jsulm

          OK, emulator device is indeed x86.
          You could try with the latest Qt6 release to see whether it works.
          I'm not sure about this part: /lib/x86/libQt6Core_x86.so Can you show your Qt configuration for Android in the Kit you're using?

          P Offline
          P Offline
          Patar
          wrote on last edited by
          #5

          @jsulm i dont really know the kit one, i just do automatic, but here it is
          38dd7aee-f6c1-4236-911e-726a8eb8cbbb-image.png

          here is the configuration, i try to change the NDK to 26 but somehow it never saved and make error (the clone one), but the compiler one is red (idk why that happen)
          5c0aa2d6-5564-4005-98f7-de6d46246c55-image.png
          1ef5be95-5779-4200-95b5-0c5f01f51134-image.png
          6709bdf8-11c5-4d93-84a1-52dffa6ce0a7-image.png
          09bc92b3-439b-4dcb-8a6b-90c42e968a03-image.png

          but in build environment its NDK 26
          5de305d2-a3f9-4e85-86aa-9d3ce4676d0a-image.png
          d7929d18-23bd-4c03-a704-66b81e550fe0-image.png

          1 Reply Last reply
          0
          • jsulmJ Offline
            jsulmJ Offline
            jsulm
            Lifetime Qt Champion
            wrote on last edited by
            #6

            This is not what I asked.
            The Kit you're using is selected on the left bottom side. Please check the name of that Kit and then got to the settings and there Kit tab - select the Kit you're currently using and check what Qt version is set in this Kit. Then go to "Qt Versions" tab and select that Qt version.
            It looks like you're using Qt 6.5 for Android, but it would be still good to see whether there are any warning in that Qt version.

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

            P 1 Reply Last reply
            0
            • jsulmJ jsulm

              This is not what I asked.
              The Kit you're using is selected on the left bottom side. Please check the name of that Kit and then got to the settings and there Kit tab - select the Kit you're currently using and check what Qt version is set in this Kit. Then go to "Qt Versions" tab and select that Qt version.
              It looks like you're using Qt 6.5 for Android, but it would be still good to see whether there are any warning in that Qt version.

              P Offline
              P Offline
              Patar
              wrote on last edited by
              #7

              @jsulm i see this is my kit

              89defaf3-d347-4e68-8c2f-08ca4ecef2dc-image.png
              429dfced-6d9b-404f-9010-462eb8784fe0-image.png

              1 Reply Last reply
              0
              • jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #8

                What about checking the Qt version in "Qt Versions" tab?

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

                P 1 Reply Last reply
                0
                • jsulmJ jsulm

                  What about checking the Qt version in "Qt Versions" tab?

                  P Offline
                  P Offline
                  Patar
                  wrote on last edited by
                  #9

                  @jsulm this one ?
                  a55e40a7-a445-4293-a208-158e8b478c57-image.png
                  62cf584c-9339-40b7-807c-62271d0e6114-image.png

                  1 Reply Last reply
                  0
                  • jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    Yes. Also looks good.
                    You could try with more recent Qt6 version.

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

                    P 1 Reply Last reply
                    0
                    • jsulmJ jsulm

                      Yes. Also looks good.
                      You could try with more recent Qt6 version.

                      P Offline
                      P Offline
                      Patar
                      wrote on last edited by
                      #11

                      @jsulm said in Cannot build any Qt application on Android with QT 6.5:

                      Qt6 version.

                      what do you think the problem in here ? is it my version didn't up to date or something wrong with NDK, SDK or JDK
                      because my friend doing OK with 5.15 version but idk why i cant do it in 5.15 and 6.5

                      but thank you so much, i will update it to newest one, hope it will solve it

                      1 Reply Last reply
                      0
                      • jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        I don't know what the problem is. You can compare your setup (SDK version, NDK version, JDK version, ...) to the setup your friend has.

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

                        P 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          I don't know what the problem is. You can compare your setup (SDK version, NDK version, JDK version, ...) to the setup your friend has.

                          P Offline
                          P Offline
                          Patar
                          wrote on last edited by
                          #13

                          @jsulm Done it, thank you its works
                          i think its just bug in 6.5 and fixed in 6.7 as stated in here https://bugreports.qt.io/browse/QTBUG-119059

                          1 Reply Last reply
                          2
                          • P Patar has marked this topic as solved on

                          • Login

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