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. Deploying on other platforms as well
Forum Updated to NodeBB v4.3 + New Features

Deploying on other platforms as well

Scheduled Pinned Locked Moved Unsolved General and Desktop
62 Posts 5 Posters 25.3k 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.
  • P p3c0
    17 Feb 2017, 04:24

    @tomy

    Do you mean that I should download and install qt-opensource-windows-x86-android-5.7.0.exe?

    Yes

    If so, should I install it over Qt Creator folder or what?

    Better to uninstall the previous one

    T Offline
    T Offline
    tomy
    wrote on 17 Feb 2017, 07:21 last edited by
    #43

    @p3c0

    Better to uninstall the previous one

    Thanks, but I don't want to code only for Android platform. If possible I'm going to install it on a subfolder in C:\Qt.

    @jsulm

    QtCreator is not Qt - why should you install Qt over QtCreator?

    I said that because I just wanted to have only an IDE for both.

    Install it somewhere - you probably already have this folder c:\Qt with your old Qt version, install the Android version there in a subfolder.
    QtCreator can handle multiple Qt versions, so no need to uninstall your existing version.

    Good, I will do that. Thanks.

    @J-Hilk
    Thanks for your info.
    There isn't the path you talked about in 5.7 in Devices, yes.

    PS: I haven't installed Qt creator (of Qt 5.7), only Qt Creator (Community).

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tomy
      wrote on 17 Feb 2017, 12:17 last edited by
      #44

      I decided to uninstall 5.7 and installed qt-opensource-windows-x86-android-5.8.0.exe with these features.
      Now I think I should add an AVD on the AVD Manager cadre of the Android tab.
      I tried to create a new AVD named "AVD_for_Android_apps" this way, but it needs an imgae (!) seemingly!

      Have I gone the way correctly?

      1 Reply Last reply
      0
      • P Offline
        P Offline
        p3c0
        Moderators
        wrote on 17 Feb 2017, 12:23 last edited by
        #45

        @tomy I think you need to run
        ./android update sdk inside android sdk folder
        which will launch an sdk manager where you can update sdk's and install system images.

        157

        1 Reply Last reply
        1
        • T Offline
          T Offline
          tomy
          wrote on 17 Feb 2017, 12:45 last edited by
          #46

          If you meant SDK Manager file, I ran this as Administrator and it showed this page. It appears that everything is installed and needs no changes!

          1 Reply Last reply
          0
          • T Offline
            T Offline
            tomy
            wrote on 17 Feb 2017, 13:09 last edited by tomy
            #47

            It worked (although I don't know how! :)).
            Now I'm following an example of docs for being familiar with android programming, and have three options/kits for choosing.

            Two last questions:
            1- should I always check only the checkbox of the first one, "Android for armeabi-v7a (GCC 4.9, Qt 5.8.0)", for Android apps?

            And 2- Should I always check only the checkbox of the third one, "Desktop Qt 5.8.0 MinGW 32bit (default)", for Windows apps?

            Everything OK now?

            J 1 Reply Last reply 17 Feb 2017, 13:16
            0
            • T tomy
              17 Feb 2017, 13:09

              It worked (although I don't know how! :)).
              Now I'm following an example of docs for being familiar with android programming, and have three options/kits for choosing.

              Two last questions:
              1- should I always check only the checkbox of the first one, "Android for armeabi-v7a (GCC 4.9, Qt 5.8.0)", for Android apps?

              And 2- Should I always check only the checkbox of the third one, "Desktop Qt 5.8.0 MinGW 32bit (default)", for Windows apps?

              Everything OK now?

              J Offline
              J Offline
              J.Hilk
              Moderators
              wrote on 17 Feb 2017, 13:16 last edited by
              #48

              @tomy

              Theres a reason, that there are 2 Android-kits, armeabi-v7a and x86.

              Never the less 90% off all android devices have the v7 architecture so you're most likly fine with arm7 as the only selection for your android compiler.

              If you want to publish your app in the Play-Store, you should compile for both, make sure that it works for both, and publish them both. GooglePlay will handle the correct distribution for you.


              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
              1
              • T Offline
                T Offline
                tomy
                wrote on 17 Feb 2017, 13:24 last edited by tomy
                #49

                Good info thanks. (And is the answer of the second question, "yes"?)

                OK, I continued the project and have the files of it on Qt Creator.
                for example, this introductory example have two buttons on MainForm.ui.qml. Do I need an android device (say, a Samsung mobile) to test the projects, each time!!?

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on 17 Feb 2017, 13:28 last edited by
                  #50
                  1. Yes and no, yes if you only plan to develop it for Windows and no if you want to test it on Windows + Android

                  No you don't need a device, you can use the emulator coming with the SDK however using a device allows you to have "real life" tests.

                  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
                  1
                  • T Offline
                    T Offline
                    tomy
                    wrote on 17 Feb 2017, 14:06 last edited by tomy
                    #51

                    I'm very new on both Qt, and Android programming so I spare it for latter to decide and for the time being I choose them separately for each type of codes/platforms.

                    I found this and had a look at the Running an App in the Android Emulator section and have this emulator.

                    Now I have that and also a folder named Andapp1 of the Docs example. There is no .apk extension file to run on an Android device!

                    I'm trying to find how to run that project using that emulator. (Rather complicated).

                    P 1 Reply Last reply 17 Feb 2017, 14:17
                    0
                    • T tomy
                      17 Feb 2017, 14:06

                      I'm very new on both Qt, and Android programming so I spare it for latter to decide and for the time being I choose them separately for each type of codes/platforms.

                      I found this and had a look at the Running an App in the Android Emulator section and have this emulator.

                      Now I have that and also a folder named Andapp1 of the Docs example. There is no .apk extension file to run on an Android device!

                      I'm trying to find how to run that project using that emulator. (Rather complicated).

                      P Offline
                      P Offline
                      p3c0
                      Moderators
                      wrote on 17 Feb 2017, 14:17 last edited by
                      #52

                      @tomy When you run your application does it pop up a window as to where to run the app?
                      The apk is created somewhere in the build folder. Check the build logs.

                      157

                      T 2 Replies Last reply 17 Feb 2017, 14:25
                      1
                      • P p3c0
                        17 Feb 2017, 14:17

                        @tomy When you run your application does it pop up a window as to where to run the app?
                        The apk is created somewhere in the build folder. Check the build logs.

                        T Offline
                        T Offline
                        tomy
                        wrote on 17 Feb 2017, 14:25 last edited by tomy
                        #53

                        @p3c0
                        There is no Build folder. Have I gone wrongly? :-(

                        When I run Andapp1 project using Qt Creator, this window comes up and the OK key is grayed out and it's not possible to select Nexus-5 there!
                        By double clicking on Nexus-5 there, I get these errors at the bottom of the Qt Creator:

                        Error while building/deploying project Andapp1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.8.0))
                        When executing step "Deploy to Android device"

                        1 Reply Last reply
                        0
                        • P Offline
                          P Offline
                          p3c0
                          Moderators
                          wrote on 17 Feb 2017, 14:51 last edited by
                          #54

                          @tomy Didn't you add new AVD as you checked here?
                          http://imgur.com/a/GJ38z

                          157

                          T 1 Reply Last reply 17 Feb 2017, 14:56
                          0
                          • P p3c0
                            17 Feb 2017, 14:17

                            @tomy When you run your application does it pop up a window as to where to run the app?
                            The apk is created somewhere in the build folder. Check the build logs.

                            T Offline
                            T Offline
                            tomy
                            wrote on 17 Feb 2017, 14:54 last edited by
                            #55

                            @p3c0
                            Do you recommend reading the instructions written that link please? Or you have used a more plain and clear tut for creating a virtual android devicd to test Android apps?

                            1 Reply Last reply
                            0
                            • P p3c0
                              17 Feb 2017, 14:51

                              @tomy Didn't you add new AVD as you checked here?
                              http://imgur.com/a/GJ38z

                              T Offline
                              T Offline
                              tomy
                              wrote on 17 Feb 2017, 14:56 last edited by tomy
                              #56

                              @p3c0 said in Deploying on other platforms as well:

                              @tomy Didn't you add new AVD as you checked here?
                              http://imgur.com/a/GJ38z

                              No, because in Kit section, The armeabi-v7a and x86 were on the list for the new project. And I simply chose armeabi-v7a.
                              AVD Manager cadre is still empty there!

                              1 Reply Last reply
                              0
                              • P Offline
                                P Offline
                                p3c0
                                Moderators
                                wrote on 17 Feb 2017, 14:59 last edited by
                                #57

                                @tomy You need to create new Android Virtual Device so that it will be listed in the manager. Choose it and deploy on it.
                                If you have a physical device then it is more easier. Just turn on USB Debugging, connect the device to your machine, run you app, choose your physical device from the list, wait for it to deploy and execute. That's it.

                                157

                                T 1 Reply Last reply 17 Feb 2017, 15:05
                                1
                                • P p3c0
                                  17 Feb 2017, 14:59

                                  @tomy You need to create new Android Virtual Device so that it will be listed in the manager. Choose it and deploy on it.
                                  If you have a physical device then it is more easier. Just turn on USB Debugging, connect the device to your machine, run you app, choose your physical device from the list, wait for it to deploy and execute. That's it.

                                  T Offline
                                  T Offline
                                  tomy
                                  wrote on 17 Feb 2017, 15:05 last edited by
                                  #58

                                  @p3c0
                                  No I don't have an physical Android device (I use an iPhone).

                                  So I need to firstly create a new virtual device so that it will be listed on the AVD Manager. Then adding it and running the app.

                                  OK, I go for it, but what tut do you suggest me to follow. And please bear in mind it's the first time for me.

                                  1 Reply Last reply
                                  0
                                  • P Offline
                                    P Offline
                                    p3c0
                                    Moderators
                                    wrote on 17 Feb 2017, 15:14 last edited by
                                    #59

                                    @tomy

                                    So I need to firstly create a new virtual device so that it will be listed on the AVD Manager. Then adding it and running the app.

                                    Yes.

                                    OK, I go for it, but what tut do you suggest me to follow. And please bear in mind it's the first time for me.

                                    Yes I do understand. Honestly speaking the Qt Docs are quite enough. What you are looking for is here:
                                    http://doc.qt.io/qtcreator/creator-developing-android.html
                                    And the emulator part on that page is here:
                                    http://doc.qt.io/qtcreator/creator-developing-android.html#using-the-android-emulator

                                    157

                                    1 Reply Last reply
                                    1
                                    • T Offline
                                      T Offline
                                      tomy
                                      wrote on 17 Feb 2017, 15:28 last edited by
                                      #60

                                      OK, thanks.
                                      I follow them.

                                      1 Reply Last reply
                                      0
                                      • T Offline
                                        T Offline
                                        tomy
                                        wrote on 17 Feb 2017, 17:52 last edited by
                                        #61

                                        I tried, but no success on the issue unfortunately. :-(

                                        You may want to see this.

                                        T 1 Reply Last reply 19 Feb 2017, 17:28
                                        0
                                        • T tomy
                                          17 Feb 2017, 17:52

                                          I tried, but no success on the issue unfortunately. :-(

                                          You may want to see this.

                                          T Offline
                                          T Offline
                                          tomy
                                          wrote on 19 Feb 2017, 17:28 last edited by tomy
                                          #62

                                          Hi all,

                                          I could finally handle the problem, not completely though.
                                          Thanks for your help up to here.

                                          I mentioned it on other thread too and if possible I would like to know your ideas as well.
                                          Please see the screenshot below. I want to know, what stuffs/updates do I need to install please?

                                          http://imgur.com/a/Iru1N

                                          1 Reply Last reply
                                          0

                                          52/62

                                          17 Feb 2017, 14:17

                                          • Login

                                          • Login or register to search.
                                          52 out of 62
                                          • First post
                                            52/62
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Users
                                          • Groups
                                          • Search
                                          • Get Qt Extensions
                                          • Unsolved