ui/cocoa: Fix absolute input device grabbing issues on Mojave
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): CAFEAcA_cwH+LH7kzfysQ6Ka98JRX5xf3NgeJo6+0vtuyxP=2ew@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): CAFEAcA-VgDpR+jdRFXxw00vtqdd5OZ5N_-xQBC5eFe7LX9M=dQ@mail.gmail.com
A message that is not in the archive (sent off-list or not yet received): [email protected]
ping
http://patchwork.ozlabs.org/patch/1058186/
Quoted 37 lines · Chen Zhang
Quoted 22 lines · Peter Maydell
Quoted 4 lines · Chen Zhang
Just double-checked on a MacMini mid 2011 with macOS 10.13.6, Xcode 10.1. This NSWindow API did exist, and the patch could be built without error. Searching convertPointFromScreen in Xcode.app’s platform SDK showed that it was defined at line 440 in
NSWindow.hof AppKit.framework.May I ask what build environment did you use (as printed by
xcode-select -p)?manooth$ xcode-select -p
/Applications/Xcode.app/Contents/DeveloperBut that doesn't seem to be what the C compiler is actually using, because the error messages quote the filename /System/Library/Frameworks/AppKit.framework/Headers/NSWindow.h There is no convertPointFromScreen in that header; but there is one in both of
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSWindow.h
Quoted 7 lines
and /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/NSWindow.h
which are the other two copies of
NSWindow.hthis machine has.thanks
-- PMMThis was really odd.
I tried to figure out what was wrong with the toolchain and run
xcode-select --installandxcode-select --switch. After the this, clang failed like what you mentioned.I had to re-configure qemu with --extra-cflags="-isysroot
xcrun --show-sdk-path”, forcing clang to use the correct SDK root, and then it would compile.Thanks and best regards,
Quoted 4 lines · Chen Zhang
ping
This needs changes to be able to compile with OSX 10.10.
thanks
-- PMM