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

"qmake -spec <mkspec>" fails for cross builds

    XMLWordPrintable

Details

    • Android, iOS/tvOS/watchOS
    • 63a812b85191c9cfe0704d400df86ce7961dea12 (qt/qtbase/dev) aa09c472d441a39bdf16e6d89fb700d04cf3e967 (qt/qtbase/6.1) 1b6baf49da204756f5f1f82e6fb2ba48e151a2a1 (qt/qtbase/6.0)

    Description

      Consider a cross-built Qt, like Qt for Android or Qt for iOS.
      Trying to call qmake with the -spec argument will fail:

      $ ~/Qt/6.0.3/android_arm64_v8a/bin/qmake -spec android-clang 
      Could not find qmake spec '-qtconf'.
      Error processing project file: /home/sven/Qt/6.0.3/android_arm64_v8a/bin/target_qt.conf
      Cannot find file: android-clang.
      

      This happens, because:

      • the qmake in Qt for Android is a wrapper script that calls
        qmake -qtconf qt_target.conf -spec android-clang
      • the first stage of command line argument handling in qmake garbles the call to
        qmake -spec -qtconf qt_target.conf android-clang

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            jbornema Joerg Bornemann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes