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 719757 - glimagesink: configure script should allow to build X11/glx backend
glimagesink: configure script should allow to build X11/glx backend
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-gl
git master
Other Mac OS
: Normal normal
: 1.2.0
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2013-12-03 10:02 UTC by Julien Isorce
Modified: 2013-12-17 08:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
osx: allow x11/glx backend and set default runtime to cocoa/nsgl (3.52 KB, patch)
2013-12-03 10:02 UTC, Julien Isorce
committed Details | Review

Description Julien Isorce 2013-12-03 10:02:12 UTC
Created attachment 263383 [details] [review]
osx: allow x11/glx backend and set default runtime to cocoa/nsgl

Currently if you install x11 and mesa-glx (for example through MacPorts), the configure script detects that glx is available but not x11.
So it try to build the support but it fails at linking time (with all default value to the flags): undefined reference to "gst_gl_context_glx_new"

So the following patch add missing part that detects x11 and gl libs. It also set the cocoa backend as the default when running gst-launch videotestsrc ! glimagesink.
Which is equivalent to:
GST_GL_WINDOW=cocoa GST_GL_PLATFORM=cocoa gst-launch videotestsrc ! glimagesink

Note that for the platform case, maybe cocoa should be renamed to nsgl.

To use x11/glx:
GST_GL_WINDOW=x11 GST_GL_PLATFORM=glx gst-launch videotestsrc ! glimagesink
Comment 1 Matthew Waters (ystreet00) 2013-12-17 03:22:08 UTC
Review of attachment 263383 [details] [review]:

looks good :)
Comment 2 Sebastian Dröge (slomo) 2013-12-17 08:33:12 UTC
commit 3f6ec9031e56a8c2eaa64fc67139ea3faedd5579
Author: Julien Isorce <julien.isorce@gmail.com>
Date:   Sat Nov 30 09:51:49 2013 +0000

    osx: allow x11/glx backend and set default runtime to cocoa/nsgl
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719757