Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. [SOLVED]Unable to configure Qt Creator for Android
QtWS25 Last Chance

[SOLVED]Unable to configure Qt Creator for Android

Scheduled Pinned Locked Moved Qt Creator and other tools
13 Posts 3 Posters 15.9k 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.
  • M Offline
    M Offline
    mbnoimi
    wrote on last edited by
    #1

    Hi,

    I was using Qt Creator frequently for developing Qt Apps for Android under Linux Mint 16 x64 but when I tried to use Qt Creator 3.0.1 (bundled with Qt 5.2.1) It became unable to see Android's SDK and NDK! So I created a fresh user then did exactly the mentioned steps in "Qt Creator guide":http://qt-project.org/doc/qtcreator-3.0/creator-developing-android.html

    How can I configure Qt Creator for Android?

    NOTE:

    • I already updated android-sdk_r22.6.2-linux to recent version
    • I use android-ndk-r9d-linux-x86_64
    • Although I'm sure that I configured QC correctly as mentioned in the screenshot I got this error:
      [code]/bin/sh: 1: /opt/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
      Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
      Could not read qmake configuration file /home/mbnoimi/.Qt5.2.1/5.2.1/android_armv5/mkspecs/android-g++/qmake.conf.
      /bin/sh: 1: /opt/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
      Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
      Could not read qmake configuration file /home/mbnoimi/.Qt5.2.1/5.2.1/android_armv7/mkspecs/android-g++/qmake.conf.
      /bin/sh: 1: /opt/android/ndk/toolchains/x86-4.8/prebuilt/linux-x86_64/bin/i686-linux-android-gcc: not found
      Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
      Could not read qmake configuration file /home/mbnoimi/.Qt5.2.1/5.2.1/android_x86/mkspecs/android-g++/qmake.conf.
      /bin/sh: 1: /opt/android/ndk/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/bin/arm-linux-androideabi-gcc: not found
      Project ERROR: You need to set the ANDROID_NDK_ROOT environment variable to point to your Android NDK.
      Could not read qmake configuration file /home/mbnoimi/.Qt5.2.1/5.2.1/android_armv7/mkspecs/android-g++/qmake.conf. [/code]

    My configures:
    !http://i.imgur.com/nvjbZhw.png(http://i.imgur.com/nvjbZhw.png)!

    !http://i.imgur.com/PWhHo18.png(http://i.imgur.com/PWhHo18.png)!

    !http://i.imgur.com/Iwyvqqj.png(http://i.imgur.com/Iwyvqqj.png)!

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mbnoimi
      wrote on last edited by
      #2

      A Qt project with armeabi_v7a support doesn't accept AVD from armeabi_v7a!!!

      !http://i.imgur.com/GOmu1jE.png(http://i.imgur.com/GOmu1jE.png)!

      !http://i.imgur.com/3s2rD1N.png(http://i.imgur.com/3s2rD1N.png)!

      1 Reply Last reply
      0
      • M Offline
        M Offline
        mbnoimi
        wrote on last edited by
        #3

        I faced this issue under Windows 7 too!!!

        May you please help me here guys?

        P.S. The error message similar to Linux one

        1 Reply Last reply
        0
        • Y Offline
          Y Offline
          YesserLab
          wrote on last edited by
          #4

          Same problem here under ArchLinux
          the ndk ins installed in /opt/android-ndk
          I have put this path (along with the sdk) in the android settings in qtcreator.
          And I did: export ANDROID_NDK_ROOT=/opt/android-ndk

          but that chaged nothing

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            Try installing Qt in windows or basic Linux. If it works then it will be your current OS issues.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              mbnoimi
              wrote on last edited by
              #6

              [quote]
              Try installing Qt in windows or basic Linux. If it works then it will be your current OS issues.
              [/quote]

              I tried on fresh Linux AND Windows too... same result!!!

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mbnoimi
                wrote on last edited by
                #7

                I wonder; What I'm missing?!

                Does anyone use Qt Creator for Android?!

                1 Reply Last reply
                0
                • ? Offline
                  ? Offline
                  A Former User
                  wrote on last edited by
                  #8

                  Sorry for the late reply. you seems to be an experienced Qt person.
                  I have used Qt Android version for a long time. Initially i also faced the runtime issues, but sometimes we need to do the trial and error method to run it properly. These kinds of issues occurs from our side/from the system.
                  How i solved my problem is,
                  I installed the Necessitas Qt version that is introduced by our honourable "BogDan Vatra", this version included sdk, ndk and other tools inside it. No need to download it from outside. When this runs successfully, install a new Qt version with Android, check what you are missing from this version (compare both versions).
                  I hope your problem will be solved.
                  Download Qt necessitas from here, http://necessitas.kde.org/

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    mbnoimi
                    wrote on last edited by
                    #9

                    [quote author="ansifpi" date="1397097058"]Sorry for the late reply. you seems to be an experienced Qt person.
                    I have used Qt Android version for a long time. Initially i also faced the runtime issues, but sometimes we need to do the trial and error method to run it properly. These kinds of issues occurs from our side/from the system.
                    How i solved my problem is,
                    I installed the Necessitas Qt version that is introduced by our honourable "BogDan Vatra", this version included sdk, ndk and other tools inside it. No need to download it from outside. When this runs successfully, install a new Qt version with Android, check what you are missing from this version (compare both versions).
                    I hope your problem will be solved.
                    Download Qt necessitas from here, http://necessitas.kde.org/[/quote]

                    Necessitas doesn't work for me because it uses Qt4 while I'm using Qt5!!!

                    1 Reply Last reply
                    0
                    • ? Offline
                      ? Offline
                      A Former User
                      wrote on last edited by
                      #10

                      Yes i know that. But Android configuration is same for both Qt4 and Qt5. Just see the difference.

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

                        [quote author="ansifpi" date="1397187733"]Yes i know that. But Android configuration is same for both Qt4 and Qt5. Just see the difference.[/quote]

                        I think you missed the point. I use Qt5 which is uable to build using the shipped Qt4 qmake.

                        1 Reply Last reply
                        0
                        • M Offline
                          M Offline
                          mbnoimi
                          wrote on last edited by
                          #12

                          This issue has been solved in Qt Creator 3.1.0 as shown in this ticket:
                          https://bugreports.qt-project.org/browse/QTCREATORBUG-12021

                          1 Reply Last reply
                          0
                          • ? Offline
                            ? Offline
                            A Former User
                            wrote on last edited by
                            #13

                            [quote author="mbnoimi" date="1398699433"]This issue has been solved in Qt Creator 3.1.0 as shown in this ticket:
                            https://bugreports.qt-project.org/browse/QTCREATORBUG-12021[/quote]

                            Glad to hear that the problem is solved. Sorry for not helping you initially to solve this problem.

                            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