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. Android (arm64-v8a)
Forum Updated to NodeBB v4.3 + New Features

Android (arm64-v8a)

Scheduled Pinned Locked Moved Solved Mobile and Embedded
8 Posts 5 Posters 8.2k Views 2 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.
  • P Offline
    P Offline
    pcspets
    Qt Champion 2021
    wrote on last edited by
    #1

    Hello

    Arm64-v8a architecture is getting more and more popular on Android devices. I searched but couldn't even find a good tutorial to compile it myself. Is there anything out there to help me get going?

    Regards
    Lauri

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      You have information and links to information about that here.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • L Offline
        L Offline
        love8879201
        wrote on last edited by love8879201
        #3

        @SGaist
        i am building up android arm64-v8a from source code,
        but i have problem about configure setting,
        i use the option -prefix {path} [http://radekp.github.io/qtmoko/api/buildsystem/over-configure-options-1.html]
        and it did installed in {path} perfectly, but i want to use the arm64-v8a lib at different location or even difference computer,
        the qt creator show error :
        Cannot read {path}/mkspecs/android-g++/qmake.conf: No such file or directory
        when i put arm64-v8a to other position: ~/Qt/qt5/arm64-v8a and add qmake in qt creator
        but it always got errors, and point to prefix {path}

        Is there any solution about this?
        or should i remove -prefix option

        btw, i am using mac

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

          Hi,

          Do you mean you are moving your Qt installation around on your computer ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          L 1 Reply Last reply
          0
          • SGaistS SGaist

            Hi,

            Do you mean you are moving your Qt installation around on your computer ?

            L Offline
            L Offline
            love8879201
            wrote on last edited by
            #5

            @SGaist
            yes, you are right.
            but i got it, there is a file named qt.conf in android_armv7a/bin
            i used it in android_arm64-v8a/bin/qt.conf as well, and it worked.

            in qt.conf, i placed this then i could move it to anywhere

            [Path]
            Prefix: ..
            

            and below was how i built the library

            git clone git://code.qt.io/qt/qt5.git qt5
            cd qt5
            perl init-repository
            
            ./configure \
            -confirm-license \
            -opensource \
            -xplatform android-g++ \
            -nomake tests \
            -nomake examples \
            -android-ndk /usr/local/Cellar/android-ndk/r10e \
            -android-sdk ~/Documents/android-sdk-macosx \
            -android-ndk-host darwin-x86_64 \
            -android-toolchain-version 4.9 \
            -android-arch arm64-v8a \
            -android-ndk-platform android-21 \
            -skip qtdeclarative \
            -skip qttranslations \
            -skip qtserialport \
            -no-warnings-are-errors \
            -no-compile-examples \
            -no-sql-mysql \
            -no-sql-psql \
            -prefix ~/Documents/Qt/android_arm64-v8a \
            -prefix-install \
            -openssl \
            -I /usr/local/Cellar/openssl/1.0.2k/include -L /usr/local/Cellar/openssl/1.0.2k/lib
            
            make -j4
            make -j4 install
            
            1 Reply Last reply
            2
            • L Offline
              L Offline
              love8879201
              wrote on last edited by
              #6

              i upload my build artifact in github: https://github.com/LightZam/Qt-Library

              anyone can skip build and download to use it

              M M 2 Replies Last reply
              0
              • L love8879201

                i upload my build artifact in github: https://github.com/LightZam/Qt-Library

                anyone can skip build and download to use it

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

                @love8879201 Hello, with what can I say that I can have a simile and compile my codes on my cell phone? Because it has arm64-v8a and it does not let me

                1 Reply Last reply
                0
                • L love8879201

                  i upload my build artifact in github: https://github.com/LightZam/Qt-Library

                  anyone can skip build and download to use it

                  M Offline
                  M Offline
                  Manang79
                  wrote on last edited by
                  #8

                  @love8879201 Why do you use darwin library to compile qt for android?
                  Thanks

                  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