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

qmake is not arm64 when building from source for arm64

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 6.2.0 Beta4
    • Build System
    • None
    • Processor: 3 GHz 6-Core Intel Core i5
      Big Sur v.11.4
      Xcode v.12.5.1
      macOs SDK 11.3
      ninja v.1.10.2
      node v.16.4.2
    • macOS

    Description

      I'm building from source because I need a universal build. The build machine is an Intel Mac.  I put more details under Environment.

      I added to configure as described here: https://www.qt.io/blog/qt-on-apple-silicon

      When testing I tried building only for arm64, which is why my current config is a follows. But I got the same result when building for both as described in the blog. 

      ../Src/configure -prefix $PWD/Qt6.2.0-beta4/ -skip qt3d -skip qtactiveqt -skip qtlocation -skip qtmultimedia -skip qtserialport -skip qtquickcontrols -skip qtsensors -nomake tests -nomake examples -skip qtcharts -DCMAKE_OSX_ARCHITECTURES="arm64"
      

      I use ninja to build. Followed by ninja install. 

      When I check the architecture of the qmake file in the prefix folder using lipo, it's x86_64.

      The project which is using Qt is still built using qmake, which is why I'm checking that file.

      Is there some step that I'm missing to get this to work?

      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
            rosab Rósa Anna Björgvinsdóttir
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes