sil-quirk / sil-q

Other
210 stars 32 forks source link

Beta 1.5.0 fails to compile on Mac OS X #60

Open athros opened 3 years ago

athros commented 3 years ago

I can compile and run 1.4.2 without issue or error, when attempting to compile 1.5.0b1 the following errors are generated:

❯ make -f Makefile.cocoa install
        CC main-cocoa.m         (objective-c)
clang -g -I. -W -Wall -Wno-unused-parameter -Wno-missing-field-initializers -O2 -DMACH_O_CARBON -DCOCOA -DHAVE_MKSTEMP -fno-stack-protector -arch i386 -arch x86_64 -std=c99 -x objective-c -mmacosx-version-min=10.5 -c -o main-cocoa.o main-cocoa.m
In file included from main-cocoa.m:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSCollectionView.h:9:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSViewController.h:248:39: error: unknown type name 'NSExtensionContext'; did you mean
      'NSAnimationContext'?
@property (nullable, readonly,retain) NSExtensionContext *extensionContext API_AVAILABLE(macos(10.10));
                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSAnimationContext.h:19:12: note: 'NSAnimationContext' declared here
@interface NSAnimationContext : NSObject
           ^
In file included from main-cocoa.m:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:99:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingServicePickerTouchBarItem.h:9:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingService.h:181:119: error: expected a type
- (NSCloudKitSharingServiceOptions)optionsForSharingService:(NSSharingService *)cloudKitSharingService shareProvider:(NSItemProvider *)provider;
                                                                                                                      ^
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSSharingService.h:196:12: error: cannot find interface declaration for 'NSItemProvider'
@interface NSItemProvider (NSCloudKitSharing)
           ^
In file included from main-cocoa.m:46:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:13:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/AppKit.h:252:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSItemProvider.h:16:12: error: cannot find interface declaration for 'NSItemProvider'
@interface NSItemProvider (NSItemSourceInfo)
           ^
main-cocoa.m:3060:8: warning: unused variable 'button' [-Wunused-variable]
                        int button = ([event type] == NSLeftMouseDown) ? 1 : 2;
                            ^
1 warning and 4 errors generated.
make: *** [main-cocoa.o] Error 1

Mac OS X, Big Sur v. 11.1 XCode v. 12.3 (12C33)

backwardsEric commented 3 years ago

The changes for compiling 1.5 on Mac OS X came after the second beta release (sil-q-1.5.0-beta1b.tar.gz). For me, the current code on GitHub builds successfully on the macOS 11.1 beta (running in a virtual machine; Xcode is 12.2). Building the second beta release on that system does give the same errors you report.