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

Building with Android NDK r23b fails due to missing ranlib / GNU binutils

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 5.15.7
    • Build System
    • None
    • Qt Creator 5.0.3
      Qt 5.15.7
      Android NDK r23b (23.1.7779620)
    • Android
    • 2021wk48POAndroid&Mobile, 2021wk50POAndroid&Mobile, 2022wk02FOAndroid&Automotive, 2022wk04FOAndroid&Automotive, 2022wk06FOAndroid&Automotive, 2022wk08FOAndroid&Automotive

    Description

      Building using the latest Android NDK r23b (23.1.7779620) results in the following error:

      make[2]: /Users/me/Library/Android/sdk/ndk/23.1.7779620/toolchains/llvm/prebuilt/darwin-x86_64/bin/aarch64-linux-android-ranlib: Command not found

      This is because the NDK no longer contains GNU binutils. From the NDK release notes:

      • GNU binutils, excluding the GNU Assembler (GAS), has been removed. GAS will be removed in the next release. If you are building with -fno-integrated-as, file bugs if anything is preventing you from removing that flag.

      I think the relevant code that needs to be fixed by using llvm-ranlib is here:
      https://github.com/qt/qtbase/blob/f6d210a0d32ce9e81a160bfb893342cb0a521f54/mkspecs/features/android/default_pre.prf#L79

      Not sure if there are other things that will need to be fixed due to this change.

      Attachments

        Issue Links

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

          Activity

            People

              qtandroidteam Qt Android Team
              fseiffert Frederik Seiffert
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes