gst-plugins-base-1.9.1 faild to build on Mac

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gst-plugins-base-1.9.1 faild to build on Mac

Miloš Selečéni
Hi, I'm unable to build gst-plugins-base-1.9.1 on mac

video-format.c:4141:14: error: comparison of constant 64 with expression of type 'GstVideoFormat' is always false

      [-Werror,-Wtautological-constant-out-of-range-compare]

  if (format >= G_N_ELEMENTS (formats))

      ~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~

video-format.c:4161:14: error: comparison of constant 64 with expression of type 'GstVideoFormat' is always false

      [-Werror,-Wtautological-constant-out-of-range-compare]

  if (format >= G_N_ELEMENTS (formats))

      ~~~~~~ ^  ~~~~~~~~~~~~~~~~~~~~~~

video-format.c:4178:32: error: comparison of constant 64 with expression of type 'GstVideoFormat' is always true

      [-Werror,-Wtautological-constant-out-of-range-compare]

  g_return_val_if_fail (format < G_N_ELEMENTS (formats), NULL);

                        ~~~~~~ ^

/usr/local/Cellar/glib/2.46.2/include/glib-2.0/glib/gmessages.h:377:18: note: expanded from macro 'g_return_val_if_fail'

     if G_LIKELY(expr) { } else                                         \

                 ^

/usr/local/Cellar/glib/2.46.2/include/glib-2.0/glib/gmacros.h:326:59: note: expanded from macro 'G_LIKELY'

#define G_LIKELY(expr) (__builtin_expect (_G_BOOLEAN_EXPR(expr), 1))

                                                          ^

/usr/local/Cellar/glib/2.46.2/include/glib-2.0/glib/gmacros.h:320:8: note: expanded from macro '_G_BOOLEAN_EXPR'

   if (expr)                                    \

       ^

video-format.c:4199:32: error: comparison of constant 64 with expression of type 'GstVideoFormat' is always true

      [-Werror,-Wtautological-constant-out-of-range-compare]

  g_return_val_if_fail (format < G_N_ELEMENTS (formats), NULL);

                        ~~~~~~ ^

/usr/local/Cellar/glib/2.46.2/include/glib-2.0/glib/gmessages.h:377:18: note: expanded from macro 'g_return_val_if_fail'

     if G_LIKELY(expr) { } else                                         \

                 ^


--

Miloš Selečéni

GPU Developer | Comprimato Systems s.r.o.


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst-plugins-base-1.9.1 faild to build on Mac

Sebastian Dröge-3
On Mo, 2016-07-25 at 14:17 +0200, Miloš Selečéni wrote:
> Hi, I'm unable to build gst-plugins-base-1.9.1 on mac
>
> [...]

That's fixed already:
https://bugzilla.gnome.org/show_bug.cgi?id=767816

Please compile with ERROR_CFLAGS='' or CFLAGS including -Wno-error.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (968 bytes) Download Attachment