[Interest] Building Qt 5.4 on Mac OSX 10.11: qcocoacursor.mm:84:20: error: no matching function for call to 'CGEventCreateMouseEvent'

Alan Ezust alan.ezust at gmail.com
Mon Sep 21 19:20:14 CEST 2015

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

    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:
warning: 'shouldQuit' overrides a member function but is not marked
    virtual bool shouldQuit();
note: overridden virtual function is here
    virtual bool shouldQuit() {
qcocoacursor.mm:84:20: error: no matching function for call to
    CGEventRef e = CGEventCreateMouseEvent(0, kCGEventMouseMoved, pos, 0);
note: candidate function not
      viable: no known conversion from 'int' to 'CGMouseButton' for 4th
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20150921/d8aa5fc6/attachment.html>

More information about the Interest mailing list