Running into troubles building Qt 5.4 on MacOSX 10.11 with clang.

   First ran into an issue related to _Nullable which was fixed by
https://codereview.qt-project.org/#/c/121545/

    Then I had to specify the SDK version in configure
    because detection was not working properly.

    ./configure -opensource -confirm-license -sdk macosx10.11 -arch x86_64

    Building for a while, I am now running into this error:


In file included from qcocoacursor.mm:44:
In file included from ./qcocoahelpers.h:48:
../../../../lib/QtGui.framework/Versions/5/Headers/5.4.2/QtGui/private/qguiapplication_p.h:84:18:
warning: 'shouldQuit' overrides a member function but is not marked
'override'
      [-Winconsistent-missing-override]
    virtual bool shouldQuit();
                 ^
../../../../lib/QtCore.framework/Versions/5/Headers/5.4.2/QtCore/private/qcoreapplication_p.h:103:18:
note: overridden virtual function is here
    virtual bool shouldQuit() {
                 ^
qcocoacursor.mm:84: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(
                                ^
81 warnings and 1 error generated.
make[6]: *** [.obj/debug/qcocoacursor.o] Error 1
make[5]: *** [debug-all] Error 2
make[4]: *** [sub-cocoa-make_first] Error 2
make[3]: *** [sub-platforms-make_first] Error 2
make[2]: *** [sub-plugins-make_first] Error 2
make[1]: *** [sub-src-make_first] Error 2
make: *** [module-qtbase-make_first] Error 2
_______________________________________________
Interest mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to