Skip to content

[depends] Qt fails to build on OSX 10.11, Xcode 7.3.1 #7999

@fanquake

Description

@fanquake
In file included from qcocoacursor.mm:35:
./qcocoawindow.h:223:11: warning: 'devicePixelRatio' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
    qreal devicePixelRatio() const;
          ^
../../../../include/QtGui/5.5.0/QtGui/qpa/../../../../../src/gui/kernel/qplatformwindow.h:110:19: note: overridden virtual function is here
    virtual qreal devicePixelRatio() const;
                  ^
qcocoacursor.mm:76:20: error: no matching function for call to 'CGEventCreateMouseEvent'
    CGEventRef e = CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0);
                   ^~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGEvent.h:57:33: note: 
      candidate function not viable: no known conversion from 'int' to 'CGMouseButton' for 4th argument
CG_EXTERN CGEventRef __nullable CGEventCreateMouseEvent(
                                ^
26 warnings and 1 error generated.
make[4]: *** [.obj/qcocoacursor.o] Error 1

This seems to be fixed in Qt 5.5.1, but probably isn't worth an intermediate bump to 5.5.1 if we're going to shift to 5.6 soon?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions