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

qmake-based android builds fail with NDK r18

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P2: Important 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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes