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

Qt 6.5 build fails on macOS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.2, 6.6.0 FF
    • 6.5.0
    • Build System
    • None
    • macOS
    • 6f6bd2c4d (dev), 45f5a7b18 (6.5)

    Description

      Hi,

      I'm a Qt Commercial licensee trying to build Qt for intel and ARM on M2. The build fails to link  qtbase/lib/QtGui.framework/Versions/A/QtGui. and gives the error 

      Undefined symbols for architecture arm64:

      More details are attached.

      I'm on a macbook pro M2 Max 64 GB, Ventura 13.4, Xcode 14.3. All the Qt6 prerequisites are installed.

      To repro,

      • Download the 6.5.0 source through the Qt Maintenance app
      • Type: ./configure -prefix /Users/<your username>/Qt/6.5.0_fixed – -DCMAKE_OSX_ARCHITECTURES="x86_64h;arm64"
      • Type: 
        cmake --build . --parallel

      Note that using just

      • ./configure -prefix /Users/<your username>/qt/6.5.0_fixed
      • cmake --build . --parallel

      the build completes and can be installed, but appears to be missing one of the targets - I'm not sure if ARM or Intel - since the installed directory is half the size of the precompiled binaries provided in the Qt Maintenance app.

      Attachments

        Issue Links

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

          Activity

            People

              qtbuildsystem Qt Build System Team
              mjsmithers Michael Smithers
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes