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

Qt for Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
18 Posts 6 Posters 2.5k 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.
  • D Offline
    D Offline
    Domel07
    wrote on last edited by
    #6

    Thank you guys for all the replies. Can you please post your configuration command? Here is mine:

    ./configure -xplatform android-clang --disable-rpath -nomake tests -nomake examples -android-ndk /home/dominik/Android/Sdk/ndk-bundle/ -android-sdk /home/dominik/Android/Sdk -android-ndk-host linux-x86_64 -android-toolchain-version 4.9 -skip qttranslations -skip qtserialport -no-warnings-are-errors

    Using At 5.12.1 and the latest sdk/ndk, open jdk 8.

    Thanks!

    Pablo J. RoginaP 1 Reply Last reply
    0
    • D Domel07

      Hi,

      I tried to follow these instructions on linux (Ubuntu):

      https://wiki.qt.io/Android

      and failed. Qt compiled no problem, but Qt Creator can not configure kits and there is only one red cross at the Device configuration with the option "SDK installed", everything else is green. Can not figure out how to configure the kits, it says "Qt versions are missing for the following architectures" and then like mips-linux-android, arm, x86 etc.

      Then I switched to Windows and installed latest versions of everything: Qt 5.12.1, SDK 26.1.1, NDK 19.1.5304403 and Oracle Java 11. I did try NDK version 10 as advised somewhere but it did not change anything. I have the same red cross as on linux but go one step further - the kits are automatically defined with Clang (arm64-v8a, armeabi-v7a, x86) but compilation fails like:

      Android build SDK not defined. Check Android settings.
      Error while building/deploying project analogclock (kit: Android for x86 (Clang Qt 5.12.1 for Android x86))
      When executing step "Build Android APK"

      Please advise how to set up the environment correctly. It's a hell of frustration and quite a show stopper for me.

      Thanks for any hints or reports of specific combination of working versions.

      F Offline
      F Offline
      FRAUBRJ
      wrote on last edited by
      #7

      @Domel07 Same problem under MacOS. It's very frustrating!
      I need to develop an application for Android, communicating by Bluetooth with a measuring device (serial link emulation) and I'm stuck.
      Help would be good.

      D 1 Reply Last reply
      0
      • D Domel07

        Thank you guys for all the replies. Can you please post your configuration command? Here is mine:

        ./configure -xplatform android-clang --disable-rpath -nomake tests -nomake examples -android-ndk /home/dominik/Android/Sdk/ndk-bundle/ -android-sdk /home/dominik/Android/Sdk -android-ndk-host linux-x86_64 -android-toolchain-version 4.9 -skip qttranslations -skip qtserialport -no-warnings-are-errors

        Using At 5.12.1 and the latest sdk/ndk, open jdk 8.

        Thanks!

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

        @Domel07 said in Qt for Android:

        ./configure -xplatform android-clang --disable-rpath -nomake tests -nomake

        Just confused or curious, I don't know. Are you building Qt yourself?

        Is there something preventing you to develop on let's say a Linux host and connect your Android device and deploy to and run your Qt application on it?

        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

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

          @Domel07 said in Qt for Android:

          ./configure -xplatform android-clang --disable-rpath -nomake tests -nomake

          Just confused or curious, I don't know. Are you building Qt yourself?

          Is there something preventing you to develop on let's say a Linux host and connect your Android device and deploy to and run your Qt application on it?

          D Offline
          D Offline
          Domel07
          wrote on last edited by Domel07
          #9

          @Pablo-J.-Rogina yes, building Qt from sources. Because I could not find a Ubuntu prebuilt version. Is there a prebuilt version of the latest Qt for Ubuntu? I could not locate one, but I might have missed it.

          However I have successfully set up the latest Qt prebuilt for Windows. Works almost out of the box, the only glitch is java version (11 won't work, need to roll back to 8).

          J.HilkJ 1 Reply Last reply
          0
          • D Domel07

            @Pablo-J.-Rogina yes, building Qt from sources. Because I could not find a Ubuntu prebuilt version. Is there a prebuilt version of the latest Qt for Ubuntu? I could not locate one, but I might have missed it.

            However I have successfully set up the latest Qt prebuilt for Windows. Works almost out of the box, the only glitch is java version (11 won't work, need to roll back to 8).

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #10

            @Domel07
            check the Qt Website, the unified online installer should have the latest Linux builds

            Should work.


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            D 2 Replies Last reply
            0
            • J.HilkJ J.Hilk

              @Domel07
              check the Qt Website, the unified online installer should have the latest Linux builds

              Should work.

              D Offline
              D Offline
              Domel07
              wrote on last edited by
              #11

              @FRAUBRJ I am currently still stuck on linux but windows works great for me (beware of the java version, 11 does not work for me).

              F 1 Reply Last reply
              0
              • J.HilkJ J.Hilk

                @Domel07
                check the Qt Website, the unified online installer should have the latest Linux builds

                Should work.

                D Offline
                D Offline
                Domel07
                wrote on last edited by
                #12

                @J.Hilk do you mean linux version? I can not find one (and the Qt download site is extremely hard to find, the information on download page are highly deceiving (and not leading to any actual downloads))

                J.HilkJ Pablo J. RoginaP 2 Replies Last reply
                0
                • D Domel07

                  @J.Hilk do you mean linux version? I can not find one (and the Qt download site is extremely hard to find, the information on download page are highly deceiving (and not leading to any actual downloads))

                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on last edited by J.Hilk
                  #13

                  @Domel07 jep
                  0_1550765212811_319E738F-BD5B-4701-B8B0-18F40FABFF79.jpeg

                  http://download.qt.io/official_releases/online_installers/qt-unified-linux-x64-online.run
                  http://download.qt.io/official_releases/online_installers/qt-unified-linux-x86-online.run

                  no idea if the links work, iā€˜m on an iPad šŸ™ˆ


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  1 Reply Last reply
                  0
                  • D Domel07

                    @J.Hilk do you mean linux version? I can not find one (and the Qt download site is extremely hard to find, the information on download page are highly deceiving (and not leading to any actual downloads))

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

                    @Domel07 what about http://download.qt.io/archive/qt/ ?

                    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

                    D 2 Replies Last reply
                    0
                    • Pablo J. RoginaP Pablo J. Rogina

                      @Domel07 what about http://download.qt.io/archive/qt/ ?

                      D Offline
                      D Offline
                      Domel07
                      wrote on last edited by
                      #15

                      @J.Hilk Will try, many thanks, I have overlooked it :) Many thanks!

                      1 Reply Last reply
                      0
                      • D Domel07

                        @FRAUBRJ I am currently still stuck on linux but windows works great for me (beware of the java version, 11 does not work for me).

                        F Offline
                        F Offline
                        FRAUBRJ
                        wrote on last edited by
                        #16

                        @Domel07 Yes you are right! I installed JDK8 (http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html)
                        and all is fine!
                        Thank.

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

                          @Domel07 what about http://download.qt.io/archive/qt/ ?

                          D Offline
                          D Offline
                          Domel07
                          wrote on last edited by
                          #17

                          @Pablo-J.-Rogina Many thanks, that's it!

                          1 Reply Last reply
                          0
                          • F FRAUBRJ

                            @Domel07 Same problem under MacOS. It's very frustrating!
                            I need to develop an application for Android, communicating by Bluetooth with a measuring device (serial link emulation) and I'm stuck.
                            Help would be good.

                            D Offline
                            D Offline
                            Domel07
                            wrote on last edited by
                            #18

                            @FRAUBRJ I am currently still stuck on linux but windows works great for me (beware of the java version, 11 does not work for me).

                            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