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

Qt 5.1.1 Android

Scheduled Pinned Locked Moved General and Desktop
28 Posts 6 Posters 10.1k Views 1 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.
  • C Offline
    C Offline
    clouca
    wrote on last edited by
    #1

    Hello everybody and thanks for your help that i have already asked you several times. I think this question concerns many who are working with Qt. I have a software which has been built for windows and linux and is working fine. Is it possible to compile this application for android like i have compiled it for linux and work fine? What changes have to be done to run a windows/linux for an application to run in android ?
    Thanks!

    1 Reply Last reply
    0
    • S Offline
      S Offline
      steno
      wrote on last edited by
      #2

      There isn't much that needs to be done at all if you are using Qt Creator. You basically have to download the android build of the libraries, android sdk, android ndk, and apache ant.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        clouca
        wrote on last edited by
        #3

        what packages of qt do i need ? The software has been developed only in Qt

        1 Reply Last reply
        0
        • S Offline
          S Offline
          steno
          wrote on last edited by
          #4

          "The ones labeled android":http://qt-project.org/downloads

          1 Reply Last reply
          0
          • C Offline
            C Offline
            clouca
            wrote on last edited by
            #5

            yes i have downloaded this package. Did you tried to compile a ready made application which was built in windows to android ?

            1 Reply Last reply
            0
            • S Offline
              S Offline
              steno
              wrote on last edited by
              #6

              Also, once you have downloaded and installed the android sdk, you have to run the sdk package manager and install an actual sdk version.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                steno
                wrote on last edited by
                #7

                Yes. I have used Qt 5.1.1 to target windows, linux, osx, ios, and android.

                1 Reply Last reply
                0
                • S Offline
                  S Offline
                  steno
                  wrote on last edited by
                  #8

                  Here are some links to help you setup creator

                  "Initial setup":http://qt-project.org/doc/qtcreator-2.8/creator-developing-android.html

                  "Deploying the application":http://qt-project.org/doc/qtcreator-2.8/creator-deploying-android.html

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    clouca
                    wrote on last edited by
                    #9

                    Thanks for your help! i will try it tomorrow. Does anyone has any experience with that.?

                    1 Reply Last reply
                    0
                    • C Offline
                      C Offline
                      clouca
                      wrote on last edited by
                      #10

                      Hello all. As i have told you yesterday today i compiled my software for android. the whole toolchain was built like in this video :
                      http://www.youtube.com/watch?v=_nkhlhBwkjk
                      The build has been done but when i am trying to deploy i get this message
                      error: Cannot find ELF information.

                      Anyone help?

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        steno
                        wrote on last edited by
                        #11

                        I forget what that means, but here are a few things to check. Have you setup your device properly? Do you have a simulator working? The android sdk has a command called adb. It stands for android debug bridge. Run the following command, adb devices and make sure it shows that you have a connected device. If you are using a simulator, you have to make sure the setting in the simulator, Use host GPU is enabled.

                        1 Reply Last reply
                        0
                        • C Offline
                          C Offline
                          clouca
                          wrote on last edited by
                          #12

                          i use android sdk as emulator. i don't use real android phone. android sdk isn't enough ? as you can see in the video only android sdk is used.

                          1 Reply Last reply
                          0
                          • C Offline
                            C Offline
                            clouca
                            wrote on last edited by
                            #13

                            can anyone help ? i am looking for that 2 days.!

                            1 Reply Last reply
                            0
                            • Z Offline
                              Z Offline
                              ZeAL0T
                              wrote on last edited by
                              #14

                              I had such "Cannot find ELF information" error too. Looks like it appears after project structure changes and when your android folder contains lots of outdated files.

                              I've just removed an android install folder (INSTALL_ROOT="/home/user/project/android" install) where the projects put all the data. And run deploy again.

                              I hope it will help.

                              1 Reply Last reply
                              0
                              • Z Offline
                                Z Offline
                                ZeAL0T
                                wrote on last edited by
                                #15

                                Android folder could be found at "Projects" - >"Run" - >"Copy application data". Just press "Details" and you can change it in "Make arguments".

                                1 Reply Last reply
                                0
                                • C Offline
                                  C Offline
                                  clouca
                                  wrote on last edited by
                                  #16

                                  Sorry i did not saw your answer.. can you explain again in more detail how to solve this ?

                                  1 Reply Last reply
                                  0
                                  • Z Offline
                                    Z Offline
                                    ZeAL0T
                                    wrote on last edited by
                                    #17

                                    I'm not sure that it is exactly your problem, but I had the "Cannot find ELF information" error. It appeared after my changes in the project (.pro) file. I found that the problem was connected with outdated files in the "android" output folder.
                                    By default it is located near the *.pro file, and it named "android". But also it could be moved to another directory in settings (look “Projects” – >“Run” – >“Copy application data”).
                                    If you remove this folder, Qt Creator will create a new one, which will be correct for the current project.
                                    By the way it's possible just to remove "bin" inside "android" I think that its stuff can cause the error.

                                    1 Reply Last reply
                                    0
                                    • C Offline
                                      C Offline
                                      clouca
                                      wrote on last edited by
                                      #18

                                      ok.. i will test it and answer, but i think that is not the problem..

                                      1 Reply Last reply
                                      0
                                      • C Offline
                                        C Offline
                                        clouca
                                        wrote on last edited by
                                        #19

                                        I have tested that and get the message "Unable to start 'org.qtproject.example.Name". Any ideas ?

                                        1 Reply Last reply
                                        0
                                        • Z Offline
                                          Z Offline
                                          ZeAL0T
                                          wrote on last edited by
                                          #20

                                          Check if you really have Qt Application in your project with name "Name".

                                          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