[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
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
-------------- 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