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

Cannot build Qt for Android on Apple M1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.2.5
    • Build System
    • None
    • macOS

    Description

      When trying to build the 6.2.5 branch (cbd0fab75f0343c61fcda5fe604ba88fb51cb797 of tqtc-qtdeclarative) , one get following build error

      ```
      /Users/sami/projects/tqtc-qt6.2.5/qtbase/src/corelib/global/qlogging.cpp:1307:13: error: use of undeclared identifier 'backtrace' int n = backtrace(buffer.data(), buffer.size());
      ```
      when building on a macbook pro.
       
      The build was configurated using
      ```
      ../tqtc-qt6.2.5/configure -platform android-clang -android-ndk /Users/sami/Library/Android/sdk/ndk/24.0.8215888 -android-sdk /Users/sami/Library/Android/sdk -qt-host-path ../tqtc-qt6.2.5-build/qtbase -android-abis x86 -developer-build
      ```
      and the android stuff was installed using android studio (see attached screenshot).
      The error can be disabled by undef'ing the QLOGGING_HAVE_BACKTRACE flag.

      Attachments

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

        Activity

          People

            qtbuildsystem Qt Build System Team
            sami.shalayel Sami Shalayel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes