Skip to content

[qt] fails to build on macOS 12 (Monterrey) #21055

@wrobelda

Description

@wrobelda

Host Environment

  • OS: macOS 12 (Monterrey)

To Reproduce
Steps to reproduce the behavior:
./vcpkg install qt5-base

Failure logs

/Users/cromo/Documents/Sourcecode/vcpkg/buildtrees/qt5-base/src/5.15.2-fa8de595e1.clean/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h:54:32: error: unknown type name 'CGColorSpaceRef'; did you mean 'QColorSpace'?
    void setColorSpace(QCFType<CGColorSpaceRef> colorSpace);
                               ^~~~~~~~~~~~~~~
                               QColorSpace
/Users/cromo/Documents/Sourcecode/vcpkg/buildtrees/qt5-base/src/5.15.2-fa8de595e1.clean/include/QtCore/../../src/corelib/kernel/qmetatype.h:2090:1: note: 'QColorSpace' declared here
QT_FOR_EACH_STATIC_GUI_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER)
^
/Users/cromo/Documents/Sourcecode/vcpkg/buildtrees/qt5-base/src/5.15.2-fa8de595e1.clean/include/QtCore/../../src/corelib/kernel/qmetatype.h:178:24: note: expanded from macro 'QT_FOR_EACH_STATIC_GUI_CLASS'
    F(QColorSpace, 87, QColorSpace) \
                       ^
/Users/cromo/Documents/Sourcecode/vcpkg/buildtrees/qt5-base/src/5.15.2-fa8de595e1.clean/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.mm:90:32: error: out-of-line definition of 'setColorSpace' does not match any declaration in 'QIOSurfaceGraphicsBuffer'
void QIOSurfaceGraphicsBuffer::setColorSpace(QCFType<CGColorSpaceRef> colorSpace)
                               ^~~~~~~~~~~~~
/Users/cromo/Documents/Sourcecode/vcpkg/buildtrees/qt5-base/src/5.15.2-fa8de595e1.clean/src/plugins/platforms/cocoa/qiosurfacegraphicsbuffer.h:54:24: note: type of 1st parameter of member declaration does not match definition ('QCFType<QColorSpace>' vs 'QCFType<CGColorSpaceRef>')
    void setColorSpace(QCFType<CGColorSpaceRef> colorSpace);
                       ^
2 errors generated.

Metadata

Metadata

Assignees

Labels

category:port-bugThe issue is with a library, which is something the port should already support

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions