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. Help with compilation for Android
Forum Updated to NodeBB v4.3 + New Features

Help with compilation for Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
7 Posts 3 Posters 2.2k 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.
  • M Offline
    M Offline
    matis14
    wrote on last edited by
    #1

    Hi, I'm starting to use the QT, and I'm trying to develop applications, the issue is that it compiles and simulates, I use the AVD but it's too slow, what I wanted to do is compile and simulate directly from my cell phone, on Samsung Galaxy S8 and it has the architecture arm64-v8a. The problem is that QT I have installed the armeabi, armeabi v7a and Android kits for x86, so when I connect the phone it appears that the ABI is incompatible. Is there a way to install the kit for the arm64-v8a architecture?

    thank you very much

    jsulmJ 1 Reply Last reply
    0
    • Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @matis14 it looks like you need to compile Qt for such architecture yourself. You may want to take a look at this post and also check this answer.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      M 1 Reply Last reply
      1
      • M matis14

        Hi, I'm starting to use the QT, and I'm trying to develop applications, the issue is that it compiles and simulates, I use the AVD but it's too slow, what I wanted to do is compile and simulate directly from my cell phone, on Samsung Galaxy S8 and it has the architecture arm64-v8a. The problem is that QT I have installed the armeabi, armeabi v7a and Android kits for x86, so when I connect the phone it appears that the ABI is incompatible. Is there a way to install the kit for the arm64-v8a architecture?

        thank you very much

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

        @matis14 Some time ago I tested with my S8 Plus and it was working perfectly. You need to make sure Android version installed on your phone matches the one you're using to build your app.

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

        1 Reply Last reply
        2
        • Pablo J. RoginaP Pablo J. Rogina

          @matis14 it looks like you need to compile Qt for such architecture yourself. You may want to take a look at this post and also check this answer.

          M Offline
          M Offline
          matis14
          wrote on last edited by
          #4

          @Pablo-J.-Rogina said in Help with compilation for Android:

          @matis14 it looks like you need to compile Qt for such architecture yourself. You may want to take a look at this post and also check this answer.

          Hello, thank you very much I will see if I can solve it. Thank you

          @jsulm said in Help with compilation for Android:

          @matis14 Some time ago I tested with my S8 Plus and it was working perfectly. You need to make sure Android version installed on your phone matches the one you're using to build your app.

          Hello, but how did you do? I create an app for Android 7.0, which is the one I have in my s8 and for architecture v7a, but when choosing the S8 to compile and simulate it tells me that the ABI is not compatible. Thank you

          jsulmJ 1 Reply Last reply
          0
          • M matis14

            @Pablo-J.-Rogina said in Help with compilation for Android:

            @matis14 it looks like you need to compile Qt for such architecture yourself. You may want to take a look at this post and also check this answer.

            Hello, thank you very much I will see if I can solve it. Thank you

            @jsulm said in Help with compilation for Android:

            @matis14 Some time ago I tested with my S8 Plus and it was working perfectly. You need to make sure Android version installed on your phone matches the one you're using to build your app.

            Hello, but how did you do? I create an app for Android 7.0, which is the one I have in my s8 and for architecture v7a, but when choosing the S8 to compile and simulate it tells me that the ABI is not compatible. Thank you

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

            @matis14 You need to know which Android version you have on your phone and then select API level which isn't higher than that Android version.
            See here: https://source.android.com/setup/build-numbers
            For example if you have Android 7.0 then use API level <= 24.

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

            Pablo J. RoginaP 1 Reply Last reply
            0
            • jsulmJ jsulm

              @matis14 You need to know which Android version you have on your phone and then select API level which isn't higher than that Android version.
              See here: https://source.android.com/setup/build-numbers
              For example if you have Android 7.0 then use API level <= 24.

              Pablo J. RoginaP Offline
              Pablo J. RoginaP Offline
              Pablo J. Rogina
              wrote on last edited by
              #6

              @jsulm in my opinion your answer is not complete. You need to take into account both the Android version (i.e. 7.0 API level 24) and the processor architecture (i.e. ARMv7 / armeabi)
              Please note that I could have a phone with ARMv7 processor and a tablet with Intel Atom processor, both devices running Android 6.0 and need to create separate applications from the same Qt source code.

              Upvote the answer(s) that helped you solve the issue
              Use "Topic Tools" button to mark your post as Solved
              Add screenshots via postimage.org
              Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

              jsulmJ 1 Reply Last reply
              0
              • Pablo J. RoginaP Pablo J. Rogina

                @jsulm in my opinion your answer is not complete. You need to take into account both the Android version (i.e. 7.0 API level 24) and the processor architecture (i.e. ARMv7 / armeabi)
                Please note that I could have a phone with ARMv7 processor and a tablet with Intel Atom processor, both devices running Android 6.0 and need to create separate applications from the same Qt source code.

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

                @Pablo-J.-Rogina Sure you need to make sure to build for the correct architecture. But to my knowledge there is no need to build for arm64-v8a to execute apps on current Android mobile phones with ARM CPU. @matis14 has a Samsung S8, so armv7 should be fine.

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

                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