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

androiddeployqt fails with "unknown argument '--libs'" when call llvm-readobj v14

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • 6.3.1
    • None

    Description

      androiddeployqt calls llvm-readobj with arg '-needed-libs': 1, 2

      Support of one-dash long options was removed from llvm at this commit (version=13). See also discussion.

      android-ndk v24 includes llvm v14, so problem must be reproduced with any Qt + android NDK v24 (and, likely, future v25).

      I try to change '-needed-libs' to '--needed-libs' in Qt code and androiddeployqt works. Seems, this can be a solution. As I understand, double dash long options was always supported (still need to check).
      Don't know which versions of Qt need to be fixed. I try to use 6.3.1, but the same code must be in v5.

      As for me, this is also ugly behaviour from llvm, because produced error message is confusing.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-104580
          # Subject Branch Project Status CR V

          Activity

            People

              villevoutilainen_qt Ville Voutilainen
              fft fft nn
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes