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. Building Qt for Android platform from sources.
Forum Updated to NodeBB v4.3 + New Features

Building Qt for Android platform from sources.

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
12 Posts 3 Posters 2.5k 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.
  • H Offline
    H Offline
    Hithendra
    wrote on last edited by
    #3

    @Pablo-J-Rogina Thanks for the reply.
    I thought building from the sources is the only way to get the qt libraries for android.
    I will try the installation for linux with android support.

    Thanks alot ...

    jsulmJ 1 Reply Last reply
    0
    • H Hithendra

      @Pablo-J-Rogina Thanks for the reply.
      I thought building from the sources is the only way to get the qt libraries for android.
      I will try the installation for linux with android support.

      Thanks alot ...

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

      @Hithendra Simply use Qt online installer and select Qt for Android there...

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

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hithendra
        wrote on last edited by
        #5

        @jsulm Thanks. I am trying that. Do I need to select source components also? I need mainly bluetooth and multimedia modules?

        jsulmJ 1 Reply Last reply
        0
        • H Hithendra

          @jsulm Thanks. I am trying that. Do I need to select source components also? I need mainly bluetooth and multimedia modules?

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

          @Hithendra If you don't need Qt sources then there is no need to select source components. Bluetooth and multimedia are already part of normal Qt installation.

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

          1 Reply Last reply
          1
          • H Offline
            H Offline
            Hithendra
            wrote on last edited by
            #7

            I got the required qt libraries. @jsulm @Pablo-J-Rogina Thanks .. You saved lot of my time.

            1 Reply Last reply
            0
            • H Offline
              H Offline
              Hithendra
              wrote on last edited by Hithendra
              #8

              @jsulm Is it possible to build Qt libraries for 64 bit arm v8?
              I would like target for android nougat device.

              The issue I am facing when I tried to link the Qt5 libraries generated as mentioned by you (using Qt online installer) is link error as below:

              /home/Qt_Nougat/5.11.0/android_armv7/lib/libQt5MultimediaWidgets.so: error adding symbols: File in wrong format. 
              

              Please help?

              Pablo J. RoginaP jsulmJ 2 Replies Last reply
              0
              • H Hithendra

                @jsulm Is it possible to build Qt libraries for 64 bit arm v8?
                I would like target for android nougat device.

                The issue I am facing when I tried to link the Qt5 libraries generated as mentioned by you (using Qt online installer) is link error as below:

                /home/Qt_Nougat/5.11.0/android_armv7/lib/libQt5MultimediaWidgets.so: error adding symbols: File in wrong format. 
                

                Please help?

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

                @Hithendra you mentioned before

                Android API level as 18.

                and also it looks like you installed latest Qt 5.11 with Android components

                /home/Qt_Nougat/5.11.0/android_armv7/lib/

                So is it working for such Android level 18?

                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

                1 Reply Last reply
                0
                • H Hithendra

                  @jsulm Is it possible to build Qt libraries for 64 bit arm v8?
                  I would like target for android nougat device.

                  The issue I am facing when I tried to link the Qt5 libraries generated as mentioned by you (using Qt online installer) is link error as below:

                  /home/Qt_Nougat/5.11.0/android_armv7/lib/libQt5MultimediaWidgets.so: error adding symbols: File in wrong format. 
                  

                  Please help?

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

                  @Hithendra Sure, you can build Qt. But it is no an easy task.
                  See https://wiki.qt.io/Building_Qt_5_from_Git
                  http://doc.qt.io/qt-5/build-sources.html

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

                  1 Reply Last reply
                  0
                  • H Offline
                    H Offline
                    Hithendra
                    wrote on last edited by
                    #11

                    @Pablo-J-Rogina I am able to successfully install that for API level 18.
                    Now, I am targeting API level 24 on 64 bit device. I tried to link the old libs for API level 24 onto 64 bit device. Then I got the error message while linking.

                    Pablo J. RoginaP 1 Reply Last reply
                    0
                    • H Hithendra

                      @Pablo-J-Rogina I am able to successfully install that for API level 18.
                      Now, I am targeting API level 24 on 64 bit device. I tried to link the old libs for API level 24 onto 64 bit device. Then I got the error message while linking.

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

                      @Hithendra Ok, so for using Qt's 32 bit libraries for Android (see my first post where it shows ELF 32-bit...) without recompiling the whole Qt platform for Android 64 bit this answer may shed some light...

                      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

                      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