Help with compilation for Android



  • 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



  • @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.


  • Moderators

    @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.



  • @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


  • Moderators

    @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.



  • @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.


  • Moderators

    @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.


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.