Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.15.7
-
None
-
Qt Creator 5.0.3
Qt 5.15.7
Android NDK r23b (23.1.7779620)
-
-
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.