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

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

    XMLWordPrintable

    Details

    • Platform/s:
      Android, iOS/tvOS/watchOS
    • Commits:
      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

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

          Activity

            People

            Assignee:
            jbornema Joerg Bornemann
            Reporter:
            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