GNOME Bugzilla – Bug 738707
gst-plugins-good fails to build on Mac OS X 10.10 Yosemite due to deprecated NSOpenGLPFAFullScreen
Last modified: 2014-10-19 18:26:32 UTC
Trying to buuild gstreamer and pitivi on OS X 10.10 w/ XCode 6.1 via cerbero... gst-plugins-good fails with: cocoawindow.m:576:7: error: 'NSOpenGLPFAFullScreen' is deprecated: first deprecated in OS X 10.6 [-Werror,-Wdeprecated-declarations] NSOpenGLPFAFullScreen, ^ /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/AppKit.framework/Headers/NSOpenGL.h:82:2: note: 'NSOpenGLPFAFullScreen' has been explicitly marked deprecated here NSOpenGLPFAFullScreen NS_ENUM_DEPRECATED_MAC(10_0, 10_6) = 54, ^ 1 error generated. make[3]: *** [libgstosxvideosink_la-cocoawindow.lo] Error 1 make[2]: *** [osxvideo] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Running command 'make' This bit built on OS X 10.9.5 with XCode 6.0.1, so it may have gotten 'more deprecated' recently....
Created attachment 288791 [details] [review] [PATCH] Disable deprecation error for NSOpenGLPFAFullScreen use on OS X 10.10 Gets the gst-plugins-good build working on OS X 10.10
Is there a replacement to that deprecated API? DO you know how hard it would be to port our code to it? I guess meanwhile we might just disable the warning.
osxvideosink is deprecated anyway
The change is also needed in the static recipe.
commit 045f600306cecc2f4419e58e322df239e43463dd Author: Sebastian Dröge <sebastian@centricular.com> Date: Sun Oct 19 20:22:00 2014 +0200 gst-plugins-good-static: Disable deprecation error for NSOpenGLPFAFullScreen use on OS X 10.10 https://bugzilla.gnome.org/show_bug.cgi?id=738707