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. Configure wants -android-ndk-host, even when I already provided it
QtWS25 Last Chance

Configure wants -android-ndk-host, even when I already provided it

Scheduled Pinned Locked Moved Mobile and Embedded
8 Posts 2 Posters 4.3k 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.
  • R Offline
    R Offline
    RudolfVonKrugstein
    wrote on last edited by
    #1

    Hey,

    I am trying to build Qt for android following the instructions here: http://qt-project.org/wiki/Qt5ForAndroidBuilding

    This is what I do for configure:

    @
    ./configure -developer-build -platform linux-g++-64 -xplatform android-g++ -nomake tests -nomake examples -android-ndk /home/ls/src/android-ndk -android-sdk /home/ls/src/android-sdk -skip qttools -skip qttranslations -skip qtwebkit -skip qtserialport -android-ndk-host linux-x86_64
    @

    The error I get is:

    @
    Can not detect the android host. Please use -android-ndk-host option to specify one
    @

    I am confused, I povided that option. Why is it ignoring it?

    Thanks!

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

      You have a typo there. Its -android-ndk-host, not android-ndk

      1 Reply Last reply
      0
      • R Offline
        R Offline
        RudolfVonKrugstein
        wrote on last edited by
        #3

        No, the last option is
        @-android-ndk-host linux-x86_64@

        1 Reply Last reply
        0
        • M Offline
          M Offline
          Moster
          wrote on last edited by
          #4

          Oh yeah sry, my bad. Can I know what system you are on?
          Also, make sure you really use the correct ndk. There is a x86 and x64 variant.

          1 Reply Last reply
          0
          • R Offline
            R Offline
            RudolfVonKrugstein
            wrote on last edited by
            #5

            Well, that was the problem. I had the x86 version installed, but I am on a 64bit system. So i downloaded the newest x86_64 version, and it worked.

            I hade to add the option: @-android-toolchain-version 4.8@ becuase version 4.7 is not present anymore.

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

              You can still use 4.7, but you need to download the ndk legacy zip.

              http://dl.google.com/android/ndk/android-ndk-r9-linux-x86_64-legacy-toolchains.tar.bz2

              1 Reply Last reply
              0
              • R Offline
                R Offline
                RudolfVonKrugstein
                wrote on last edited by
                #7

                Mmh, ok. Is there any reason why I should?

                Thanks by the way!

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  Moster
                  wrote on last edited by
                  #8

                  Actually no. Since google seems to trust it, you can do that, too.
                  I only disliked the warnings that it gave me due to the new c++11 standard :D

                  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