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

Can't build for Android

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.4.2, 6.5.0
    • 6.4.1
    • Build tools: qmake
    • None
    • Windows; Qt 6.4.1; NDK 23.1.7779620
    • Android
    • 5865452ca (tqtc/lts-6.2), 03262625a (tqtc/lts-5.15), 49f62e8c5 (dev), e526d0116 (6.4)

    Description

      It tries to use arm-linux-androideabi-ranlib file. But this file no longer exists in NDK 23 (which is required by Qt 6.4.1 according to docs) at least in its Windows version.

      C:\Users\alexa\AppData\Local\Android\Sdk\ndk\23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ranlib ..\bin\libnetwrksniff_armeabi-v7a.a
      process_begin: CreateProcess(NULL, C:\Users\alexa\AppData\Local\Android\Sdk\ndk\23.1.7779620/toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ranlib ..\bin\libnetwrksniff_armeabi-v7a.a, ...) failed.
      make (e=2): Tmake[1]: Leaving directory 'C:/Work/Source/build-fdm-Android_Qt_6_4_1_Clang_armeabi_v7a-Debug/netwrksniff'
      he system cannot find the file specified.
      make[1]: *** [Makefile:90: ..\bin\libnetwrksniff_armeabi-v7a.a] Error 2 

       Workaround I've found for now is to just make a link (or just copy) from llvm-ranlib.exe to arm-linux-androideabi-ranlib.exe.

      P.S. I've added the repro sample. The same issue happens under Linux also.

      Attachments

        Issue Links

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

          Activity

            People

              semlanik Alexey Edelev
              alervd Alexander Dyagilev
              Votes:
              2 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: