GL linking failure on Mac OS X (mojave)
Not sure why it happens. I faced this error after updating macOS Mojave to 10.14.2
FAILED: subprojects/gst-plugins-base/gst-libs/gst/gl/libgstgl-1.0.0.dylib
cc -o subprojects/gst-plugins-base/gst-libs/gst/gl/libgstgl-1.0.0.dylib 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/meson-generated_.._gl-enumtypes.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglapi.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglbasefilter.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglbasememory.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglcolorconvert.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglbuffer.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglbufferpool.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglcontext.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstgldebug.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstgldisplay.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglfeature.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglfilter.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglformat.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglframebuffer.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglmemory.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglmemorypbo.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstgloverlaycompositor.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglquery.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglrenderbuffer.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglshader.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglshaderstrings.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglsl.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglslstage.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglsyncmeta.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglupload.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglutils.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglviewconvert.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/gstglwindow.c.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/cocoa_gstglcaopengllayer.m.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/cocoa_gstglcontext_cocoa.m.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/cocoa_gstgldisplay_cocoa.m.o' 'subprojects/gst-plugins-base/gst-libs/gst/gl/d6e11d2@@gstgl-1.0@sha/cocoa_gstglwindow_cocoa.m.o' -L/usr/local/opt/openssl/lib -L/usr/local/opt/libffi/lib -L/usr/local/opt/bison/lib -L/usr/local/opt/libxml2/lib -shared -install_name @rpath/libgstgl-1.0.0.dylib -compatibility_version 1501 -current_version 1501 subprojects/gstreamer/libs/gst/base/libgstbase-1.0.0.dylib subprojects/gstreamer/gst/libgstreamer-1.0.0.dylib subprojects/gst-plugins-base/gst-libs/gst/video/libgstvideo-1.0.0.dylib subprojects/gst-plugins-base/gst-libs/gst/allocators/libgstallocators-1.0.0.dylib /usr/local/Cellar/glib/2.58.1/lib/libglib-2.0.dylib /usr/local/opt/gettext/lib/libintl.dylib -Wl,-framework -Wl,CoreFoundation /usr/local/Cellar/glib/2.58.1/lib/libgobject-2.0.dylib -Wl,-framework -Wl,CoreFoundation /usr/local/Cellar/glib/2.58.1/lib/libgmodule-2.0.dylib -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreFoundation -lm -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreFoundation -Wl,-framework -Wl,CoreFoundation /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework /Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework -framework QuartzCore -framework CoreFoundation -framework Foundation -framework Cocoa -Wl,-headerpad_max_install_names -Wl,-rpath,@loader_path/../../../../gstreamer/libs/gst/base -Wl,-rpath,@loader_path/../../../../gstreamer/gst -Wl,-rpath,@loader_path/../../../../gstreamer/gst/printf -Wl,-rpath,@loader_path/../video -Wl,-rpath,@loader_path/../allocators
ld: can't map file, errno=22 file '/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/System/Library/Frameworks/OpenGL.framework' for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)