Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

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

    Mobile and Embedded
    2
    8
    4012
    Loading More Posts
    • 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
      RudolfVonKrugstein last edited by

      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 Reply Quote 0
      • M
        Moster last edited by

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

        1 Reply Last reply Reply Quote 0
        • R
          RudolfVonKrugstein last edited by

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

          1 Reply Last reply Reply Quote 0
          • M
            Moster last edited by

            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 Reply Quote 0
            • R
              RudolfVonKrugstein last edited by

              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 Reply Quote 0
              • M
                Moster last edited by

                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 Reply Quote 0
                • R
                  RudolfVonKrugstein last edited by

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

                  Thanks by the way!

                  1 Reply Last reply Reply Quote 0
                  • M
                    Moster last edited by

                    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 Reply Quote 0
                    • First post
                      Last post