Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. May I compile for Android with standart 5.8 Linux version?
Forum Updated to NodeBB v4.3 + New Features

May I compile for Android with standart 5.8 Linux version?

Scheduled Pinned Locked Moved Solved General and Desktop
8 Posts 3 Posters 2.9k Views 3 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.
  • MucipM Offline
    MucipM Offline
    Mucip
    wrote on last edited by
    #1

    Hi,
    I installed standart Qt 5.8 for Linux. Now I want to test on Android too! May I use same Qt with some additition libraries or should I uninstall and install Qt 5.8 Android version?!...

    And, Can I compile desktop applications with Qt for Android too?! If yes I think it's better to uninstall Qt 5.8 for linux and install Qt 5.8 Android to create applications for both Android and Linux...

    Regards,
    Mucip:)

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

      Hi,

      No you can't, "Qt for Android" is exactly that, Qt build to run on Android platform. You need to install additional Qt version for the platform you want to target.

      The most simple for that is to use the online installer. It allows to easily add/update/remove Qt versions.

      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
      • MucipM Offline
        MucipM Offline
        Mucip
        wrote on last edited by
        #3

        Dear SGaist,
        First of all thanks for your interest. I followed your way and reinstall with Qt Online installer. And now I have Qt 5.8 Android too.

        But I do not see Android item on the left listbox on Option window. I think I need to install NDK and SDK too. I checked the internet little bit but all information and videos for the older versions! I do not want to make a mistake!

        Please could you suggest me never (I mean Qt 5.8 and Debian 8) and offical information?...

        Best regards,
        Mucip:)

        mrjjM 1 Reply Last reply
        0
        • MucipM Mucip

          Dear SGaist,
          First of all thanks for your interest. I followed your way and reinstall with Qt Online installer. And now I have Qt 5.8 Android too.

          But I do not see Android item on the left listbox on Option window. I think I need to install NDK and SDK too. I checked the internet little bit but all information and videos for the older versions! I do not want to make a mistake!

          Please could you suggest me never (I mean Qt 5.8 and Debian 8) and offical information?...

          Best regards,
          Mucip:)

          mrjjM Offline
          mrjjM Offline
          mrjj
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Mucip
          Hi
          You need extra installs yes
          http://doc.qt.io/qt-5/androidgs.html
          Note the API levels requirements
          https://wiki.qt.io/Android

          1 Reply Last reply
          0
          • MucipM Offline
            MucipM Offline
            Mucip
            wrote on last edited by
            #5

            Hi,
            I already checked this page,
            http://doc.qt.io/qt-5/androidgs.html

            But I guess it is deprecated now. Because when I run

            ./android update sdk

            The message comes;
            mucip@debian-ev:~/Android/Sdk/tools$ ./android update sdk


            The "android" command is deprecated.
            For manual SDK, AVD, and project management, please use Android Studio.
            For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager


            "android" SDK commands can be translated to sdkmanager commands on a best-effort basis.
            Continue? (This prompt can be suppressed with the --use-sdk-wrapper command-line argument
            or by setting the USE_SDK_WRAPPER environment variable) [y/N]:

            Or am I wrong?...

            mrjjM 1 Reply Last reply
            0
            • MucipM Mucip

              Hi,
              I already checked this page,
              http://doc.qt.io/qt-5/androidgs.html

              But I guess it is deprecated now. Because when I run

              ./android update sdk

              The message comes;
              mucip@debian-ev:~/Android/Sdk/tools$ ./android update sdk


              The "android" command is deprecated.
              For manual SDK, AVD, and project management, please use Android Studio.
              For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager


              "android" SDK commands can be translated to sdkmanager commands on a best-effort basis.
              Continue? (This prompt can be suppressed with the --use-sdk-wrapper command-line argument
              or by setting the USE_SDK_WRAPPER environment variable) [y/N]:

              Or am I wrong?...

              mrjjM Offline
              mrjjM Offline
              mrjj
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Seems you are right
              At least the cmdline has changed.
              ./android update sdk
              seems to have become
              sdkmanager --update
              and so on.
              https://developer.android.com/studio/command-line/sdkmanager.html
              seems also possible directly in Studio.
              https://developer.android.com/studio/intro/update.html

              1 Reply Last reply
              0
              • MucipM Offline
                MucipM Offline
                Mucip
                wrote on last edited by
                #7

                Dear mrjj,
                I installed 5.9 Beta too and I can test the Android in Qt right now!
                I do not know why but I think new SDK is only works with Qt 5.9?!...

                Or may be I am wrong but the situation is like this now. Qt 5.9 should be installed also...

                mrjjM 1 Reply Last reply
                0
                • MucipM Mucip

                  Dear mrjj,
                  I installed 5.9 Beta too and I can test the Android in Qt right now!
                  I do not know why but I think new SDK is only works with Qt 5.9?!...

                  Or may be I am wrong but the situation is like this now. Qt 5.9 should be installed also...

                  mrjjM Offline
                  mrjjM Offline
                  mrjj
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @Mucip
                  Well new often works best with new so you might be right.
                  https://wiki.qt.io/Android
                  lists the API level needed for each module.
                  it says
                  Beginning with Qt 5.7, any API level >= 18 will work.

                  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