[Bug 721245] osxvideosink: Fails to build on OS X Leopard 10.5.8

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jan 9 09:51:12 PST 2014


https://bugzilla.gnome.org/show_bug.cgi?id=721245
  GStreamer | gst-plugins-good | unspecified

--- Comment #18 from Jeremy Huddleston <jeremyhu at freedesktop.org> 2014-01-09 17:51:10 UTC ---
(In reply to comment #16)
> Yes, so it seems. In my case MAC_OS_X_VERSION_MIN_REQUIRED was in CFLAGS though
> :)

Unless there is some odd bug in system headers (please file a radar if so or
point me to it, so I can do so), there should be no reason to ever define
MAC_OS_X_VERSION_MIN_REQUIRED in CFLAGS.  From Availability.h:

"""
    The min OS version is specified as an option to the compiler:
    -mmacosx-version-min=10.x when building for Mac OS X, and
-miphoneos-version-min=y.z
    when building for the iPhone.  The upper bound for the OS version is rarely
needed,
    but it can be set on the command line via:
-D__MAC_OS_X_VERSION_MAX_ALLOWED=10x0 for
    Mac OS X and __IPHONE_OS_VERSION_MAX_ALLOWED = y0z00 for iOS.
"""

So please use -mmacosx-version-min=10.x instead and let the headers do the
magic for you, or you may run into conflicts.  eg:

$ echo | clang -E -dM -DMAC_OS_X_VERSION_MIN_REQUIRED=1060 - | grep MIN_REQ
#define MAC_OS_X_VERSION_MIN_REQUIRED 1060
#define __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ 1090

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list