GNOME Bugzilla – Bug 738740
gl/cocoa: Fails to build on Mac OS X 10.10
Last modified: 2014-10-19 18:02:58 UTC
Created attachment 288792 [details] [review] Patch that fixes build for me on OS X 10.10 gst-plugins-bad fails to build on OS X 10.10 with this odd error: gstglwindow_cocoa.m:141:27: error: sending 'GstGLNSWindow *' to parameter of incompatible type 'id<NSFileManagerDelegate>' [-Werror] [NSApp setDelegate: priv->internal_win_id]; ^~~~~~~~~~~~~~~~~~~~~ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSFileManager.h:109:47: note: passing argument to parameter 'delegate' here @property (assign) id <NSFileManagerDelegate> delegate NS_AVAILABLE(10_5, 2_0); ^ 1 error generated. See attached patch for a fix that seems to work on 10.10.
I hit this too.
Also, the patch builds for me and makes sense.
commit 88b19bcf997b0f396737af5b5fc2fd9a3a9957eb Author: Brion Vibber <brion@pobox.com> Date: Fri Oct 17 21:26:52 2014 -0700 gl/cocoa: Fix for building on Mac OS X 10.10 Using NSApp directly seems to confuse something, as the compiler was expecting an id<NSFileManagerDelegate>. Switched to using [NSApplication sharedApplication], and specified the delegate protocol on the window class as well. https://bugzilla.gnome.org/show_bug.cgi?id=738740