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

Fails to build Qt 6.2.1 using xcode 13.1

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • 6.2.1
    • Extras: Mac
    • None
    • macOS 11.6.1 (x86_64)
      Xcode 13.1
    • macOS
    • 378706

    Description

      Make failed with:

      08:43:28 FAILED: qtbase/src/plugins/platforms/cocoa/CMakeFiles/QCocoaIntegrationPlugin.dir/qiosurfacegraphicsbuffer.mm.o 
      08:43:28 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -DGL_SILENCE_DEPRECATION -DQCocoaIntegrationPlugin_EXPORTS -DQT_CORE_LIB -DQT_DEPRECATED_WARNINGS -DQT_DEPRECATED_WARNINGS_SINCE=0x060000 -DQT_DISABLE_DEPRECATED_BEFORE=0x050000 -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_NO_EXCEPTIONS -DQT_NO_FOREACH -DQT_PLUGIN -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/opt/build/build-Qtq6_2mx6nf/qtbase/src/plugins/platforms/cocoa/QCocoaIntegrationPlugin_autogen/include -I/opt/sources/qt-everywhere-src-6.2.1/qtbase/src/plugins/platforms/cocoa -I/opt/build/build-Qtq6_2mx6nf/qtbase/src/plugins/platforms/cocoa -I/opt/build/build-Qtq6_2mx6nf/qtbase/include -I/opt/build/build-Qtq6_2mx6nf/qtbase/include/QtCore -I/opt/sources/qt-everywhere-src-6.2.1/qtbase/mkspecs/macx-clang -I/opt/build/build-Qtq6_2mx6nf/qtbase/src/corelib -I/opt/build/build-Qtq6_2mx6nf/qtbase/include/QtCore/6.2.1 -I/opt/build/build-Qtq6_2mx6nf/qtbase/include/QtCore/6.2.1/QtCore -I/opt/build/build-Qtq6_2mx6nf/qtbase/include/QtGui -I/opt/build/build-Qtq6_2mx6nf/qtbase/src/gui -I/opt/build/build-Qtq6_2mx6nf/qtbase/include/QtGui/6.2.1 -I/opt/build/build-Qtq6_2mx6nf/qtbase/include/QtGui/6.2.1/QtGui -x objective-c++ -DNDEBUG -O2 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.0.sdk -mmacosx-version-min=10.14 -fPIC -fvisibility=hidden -fvisibility-inlines-hidden -Wall -Wextra -fno-exceptions -fPIC -std=c++17 -MD -MT qtbase/src/plugins/platforms/cocoa/CMakeFiles/QCocoaIntegrationPlugin.dir/qiosurfacegraphicsbuffer.mm.o -MF qtbase/src/plugins/platforms/cocoa/CMakeFiles/QCocoaIntegrationPlugin.dir/qiosurfacegraphicsbuffer.mm.o.d -o qtbase/src/plugins/platforms/cocoa/CMakeFiles/QCocoaIntegrationPlugin.dir/qiosurfacegraphicsbuffer.mm.o -c /opt/sources/qt-everywhere-src-6.2.1/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm
      08:43:28 In file included from /opt/sources/qt-everywhere-src-6.2.1/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm:40:
      08:43:28 /opt/sources/qt-everywhere-src-6.2.1/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h:56:32: error: unknown type name 'CGColorSpaceRef'; did you mean 'QColorSpace'?
      08:43:28     void setColorSpace(QCFType<CGColorSpaceRef> colorSpace);
      08:43:28                                ^~~~~~~~~~~~~~~
      08:43:28                                QColorSpace
      08:43:28 /opt/build/build-Qtq6_2mx6nf/qtbase/include/QtCore/../../../../../sources/qt-everywhere-src-6.2.1/qtbase/src/corelib/kernel/qmetatype.h:1410:1: note: 'QColorSpace' declared here
      08:43:28 QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
      08:43:28 ^
      08:43:28 /opt/build/build-Qtq6_2mx6nf/qtbase/include/QtCore/../../../../../sources/qt-everywhere-src-6.2.1/qtbase/src/corelib/kernel/qmetatype.h:199:28: note: expanded from macro 'QT_FOR_EACH_STATIC_GUI_CLASS'
      08:43:28     F(QColorSpace, 0x1017, QColorSpace) \
      08:43:28                            ^
      08:43:28 /opt/sources/qt-everywhere-src-6.2.1/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm:90:32: error: out-of-line definition of 'setColorSpace' does not match any declaration in 'QIOSurfaceGraphicsBuffer'
      08:43:28 void QIOSurfaceGraphicsBuffer::setColorSpace(QCFType<CGColorSpaceRef> colorSpace)
      08:43:28                                ^~~~~~~~~~~~~
      08:43:28 /opt/sources/qt-everywhere-src-6.2.1/qtbase/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h:56:24: note: type of 1st parameter of member declaration does not match definition ('QCFType<QColorSpace>' vs 'QCFType<CGColorSpaceRef>')
      08:43:28     void setColorSpace(QCFType<CGColorSpaceRef> colorSpace);
      08:43:28                        ^
      08:43:28 2 errors generated.
      08:43:32 ninja: build stopped: subcommand failed.
      

      full build log attached.

      Attachments

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

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            fsu0413 Frank Su
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes