[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
ui/cocoa.m compile error
From: |
Liviu Ionescu |
Subject: |
ui/cocoa.m compile error |
Date: |
Fri, 7 Jan 2022 23:46:54 +0200 |
Hi,
I'm building 6.2.0 on macOS, and on a recent macOS 11.6 with Apple Silicon the
build passes, but on a slightly older macOS 10.13, which is my base platform
for Intel macOS builds, compiling ui/cocoa.m fails:
```
../../sources/qemu-6.2.0.git/ui/cocoa.m:1766:52: error: unknown type name
'NSPasteboardTypeOwner'; did you mean 'NSPasteboardType'?
@interface QemuCocoaPasteboardTypeOwner : NSObject<NSPasteboardTypeOwner>
^~~~~~~~~~~~~~~~~~~~~
NSPasteboardType
/System/Library/Frameworks/AppKit.framework/Headers/NSPasteboard.h:22:20: note:
'NSPasteboardType' declared here
typedef NSString * NSPasteboardType NS_EXTENSIBLE_STRING_ENUM;
^
../../sources/qemu-6.2.0.git/ui/cocoa.m:1766:43: error: type arguments cannot
be applied to non-parameterized class 'NSObject'
@interface QemuCocoaPasteboardTypeOwner : NSObject<NSPasteboardTypeOwner>
^ ~~~~~~~~~~~~~~~~~~~~~~~
3 warnings and 2 errors generated.
```
I checked the Git history and the cocoa.m:1766 line is part of commit 7e3e20d8
from 23 Jun 2021:
-
https://github.com/xpack-dev-tools/qemu/commit/7e3e20d89129614f4a7b2451fe321cc6ccca3b76
I don't have experience with Cocoa programming, but apparently this recent
change is not compatible with older Macs.
Any suggestions on how to approach this?
Thank you,
Liviu
- ui/cocoa.m compile error,
Liviu Ionescu <=
- Re: ui/cocoa.m compile error, Peter Maydell, 2022/01/07
- Re: ui/cocoa.m compile error, Liviu Ionescu, 2022/01/07
- Re: ui/cocoa.m compile error (Cocoa -> SDL), Liviu Ionescu, 2022/01/10
- Re: ui/cocoa.m compile error (Cocoa -> SDL), Thomas Huth, 2022/01/17
- Re: ui/cocoa.m compile error (Cocoa -> SDL), Liviu Ionescu, 2022/01/17
- Re: ui/cocoa.m compile error (Cocoa -> SDL), Peter Maydell, 2022/01/17
- Re: ui/cocoa.m compile error (Cocoa -> SDL), Liviu Ionescu, 2022/01/17
- Re: ui/cocoa.m compile error (Cocoa -> SDL), Liviu Ionescu, 2022/01/17
- Re: ui/cocoa.m compile error (Cocoa -> SDL), Liviu Ionescu, 2022/01/19
- Re: ui/cocoa.m compile error (Cocoa -> SDL), Peter Maydell, 2022/01/17