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. Qt5.2.1 Android Windows7
QtWS25 Last Chance

Qt5.2.1 Android Windows7

Scheduled Pinned Locked Moved Mobile and Embedded
17 Posts 5 Posters 5.2k Views
  • 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.
  • X Offline
    X Offline
    Xander84
    wrote on last edited by
    #8

    It may be a bug, but what does it hurt to set the env variable? i have it set and it works but it may be some other problem.
    And the link isn't working here, "Issue Does Not Exist" :(

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fp615
      wrote on last edited by
      #9

      bug is 38064, there is a 1 that shouldn't be in the url, sorry.

      Can you please show me your env setting ? where does it point to ? Anyway, if the variable was necessary why should we had to setup the dirs in the kits ?

      1 Reply Last reply
      0
      • X Offline
        X Offline
        Xander84
        wrote on last edited by
        #10

        I just set it to the NDK path, don't ask me why we have to do that but it works... Also adb sometimes crashes in my experience, so you should kill the task or restart your PC. That is an android SDK bug of course and has nothing to do with Qt.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MartynW
          wrote on last edited by
          #11

          bq. "The NDK is a toolset that allows you to implement parts of your app using native-code languages such as C and C++. For certain types of apps, this can be helpful so you can reuse existing code libraries written in these languages...

          suggests the NDK is required because we want to use the Qt libraries and nothing will run without it.

          Maybe one of your setups has it implicitly located on the search path so it doesn't complain that it can't find it but with the second setup the search path is slightly different and so it needs that explicit env var?

          1 Reply Last reply
          0
          • F Offline
            F Offline
            fp615
            wrote on last edited by
            #12

            Ni Martyn, NDK is required and installed. There is a place in Qt Creator configuration where you set its directory path. The env variable should not be necessary.

            It seems to be a problem of the new SDK (released on March 21):
            https://bugreports.qt-project.org/browse/QTBUG-38064

            1 Reply Last reply
            0
            • M Offline
              M Offline
              MartynW
              wrote on last edited by
              #13

              You are right of course. I was thinking of the creator config, I dunno why I latched onto the env var - sorry!

              1 Reply Last reply
              0
              • C Offline
                C Offline
                cezmen
                wrote on last edited by
                #14

                I believe there is an incompatibility between the latest Android SDK and Qt 5.2.1. My suggestion : downgrade the Android SDK to version 22.3. I had similar building issued with Android (Qt 5.2.1 for MacOS) and solved them with the following procedure :

                http://qt-project.org/forums/viewreply/170048/

                1 Reply Last reply
                0
                • X Offline
                  X Offline
                  Xander84
                  wrote on last edited by
                  #15

                  I am using the latest Android SDk 22.6.2 with Qt 5.2.1 on windows without any problems (android-ndk-r9d and apache-ant-1.9.3)?
                  The only problem I had forever is that I can't get x86 android builds to work, the app is just crashing.. but arm builds work fine!?

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    wwwronin
                    wrote on last edited by
                    #16

                    I think is not the version of Android SDK. When I switch to the API14(4.0.0) ,the problem still exists. So I try to connect my Android Phone to the computer ,I found that there is a compatible device listed,but these virtual devices created earlier were still incompatible. And there is another problem, I packed my program into *.apk and instll it to my phone, it seems to be stranger ,for the running result is not the same with the desktop program ,such as : I set the gui element(like QPushButton) to alignment with the top of the Widget, it is correct in desktop program ,but is not correct in Android program. Why is that?

                    1 Reply Last reply
                    0
                    • X Offline
                      X Offline
                      Xander84
                      wrote on last edited by
                      #17

                      can you provide some screenshots?
                      In most cases the alignment will be different because of the layout container and smaller spaces on mobile phones it might not fit on the screen or I don't know with any specifics.
                      My apps look exactly the same on all devices, so I have no idea.

                      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