Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-70650

qmake-based android builds fail with NDK r18

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.11.1, 5.11.2
    • Build tools: qmake
    • None
    • * Arch Linux, Kernel 4.14.70
      * Qt 5.11.2
      * Android NDK Version r18
    • Android

    Description

      When trying to build any qmake base project with NDK r18 qmake fails with the following error message:

      clang++: error: unknown argument: '-mthumb-interwork'
      Project ERROR: failed to parse default search paths from compiler output
      

      Note: The clang++: ... line is only displayed when compiling for armv7. For the x86 builds, only the second line is displayed.

      When inspecting the new NDK files, I found that the gcc/g++ compilers where replaced by shellscripts that invoke clang! See:

      >>> cat $ANDROID_NDK_ROOT/toolchains/x86-4.9/prebuilt/linux-x86_64/bin/i686-linux-android-gcc
      #!/bin/bash
      exec `dirname $0`/../../../../llvm/prebuilt/linux-x86_64/bin/clang -target i686-linux-android "$@"
      

      I checked all the different plattforms, all look the same. So it seems, google has finally removed g++ support...

      The prebuild android binaries from the Qt installer where used. This is most likely related to QTBUG-70631, as the error there is also related to the NDK r18.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              buddenha Oswald Buddenhagen
              SkyCoder Felix Barz
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes