After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 788402 - osxvideosink build fails on mac OS < 12.0
osxvideosink build fails on mac OS < 12.0
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other Mac OS
: Normal normal
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-10-01 16:23 UTC by Jérôme Laheurte
Modified: 2018-02-08 16:25 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch to fix build on mac OS < 12.0 (1.49 KB, patch)
2017-10-01 16:23 UTC, Jérôme Laheurte
committed Details | Review

Description Jérôme Laheurte 2017-10-01 16:23:08 UTC
In master, some changes have been made in osxvideosink to get rid of deprecated macro names (events, etc). There is a test to #define the old names:

#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_12

This does not actually work since on older XCode versions MAC_OS_X_VERSION_10_12 is not defined. Apple's own documentation says to use the version macro *value* in this case.

The attached patch fixes this.
Comment 1 Jérôme Laheurte 2017-10-01 16:23:45 UTC
Created attachment 360728 [details] [review]
Patch to fix build on mac OS < 12.0
Comment 3 Jérôme Laheurte 2018-01-02 13:54:49 UTC
Hello, happy new year. Any reason this is still open even though #788404 has been accepted ?
Comment 4 Tim-Philipp Müller 2018-02-08 15:54:21 UTC
Sorry, pushed now:

commit 891425d537850705aeb0b98ea18beb3f4eb12518 (HEAD -> master)
Author: Jérôme Laheurte <jerome@jeromelaheurte.net>
Date:   Sun Oct 1 18:21:26 2017 +0200

    osxvideosink: fix build on macOS versions < 12.0
    
    Use value instead of version macro when testing for mac OS version,
    since the define for the newer version may not be defined when
    compiling against older versions.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=788402
Comment 5 Jérôme Laheurte 2018-02-08 16:25:51 UTC
Very cool, thanks.