Compile error for Git Master

Nicolas Dufresne nicolas.dufresne at collabora.com
Thu May 8 07:32:46 PDT 2014


Le mercredi 07 mai 2014 à 22:44 +0200, Peter Maersk-Moller a écrit :
> Hi.
> 
> 
> 
> Error preventsGit Master  gst-plugins-bad from compiling. The errors
> are:
> 
> make[5]: Entering directory
> `/home/stream/Projects/GStreamer/Git/gst-plugins-bad/gst-libs/gst/gl'
>   CC       libgstgl_1.0_la-gstgldisplay.lo
> gstgldisplay.c: In function 'gst_gl_display_new':
> gstgldisplay.c:115:30: error: variable 'platform_choice' set but not
> used [-Werror=unused-but-set-variable]
>    const gchar *user_choice, *platform_choice;
>                               ^
> cc1: all warnings being treated as errors
> make[5]: *** [libgstgl_1.0_la-gstgldisplay.lo] Error 1
> 
> 
> If 'GST_GL_HAVE_PLATFORM_EGL' is not defined, then platform_choice is
> defined and set, but not used which with the configured compiling
> settings throws an error. If the setting of platform_choice is moved
> in under the
> '#if GST_GL_HAVE_PLATFORM_EGL' then the platform_choice is defined,
> but not used throwing an error. So that must be guarded as well by the
> 'GST_GL_HAVE_PLATFORM_EGL.


It's used always if debug traces is enabled. So I suppose you disabled
debug traces in your build and EGL is the only supported platform.

  if (!display) {
    /* subclass returned a NULL window */
    GST_WARNING ("Could not create display. user specified %s, creating
dummy",
        user_choice ? user_choice : "(null)");

This is a bit tricky/twisted to fix, please file a bug, bugs.gnome.org
produce GStreamer component gst-plugins-bad.

cheers,
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140508/7756a260/attachment.html>


More information about the gstreamer-devel mailing list