[Bug 796885] New: gst-plugins-base: Yocto build error: 'gbm.h' not found, 'EGL_PLATFORM_GBM_MESA' undeclared

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Jul 27 13:23:57 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=796885

            Bug ID: 796885
           Summary: gst-plugins-base: Yocto build error: 'gbm.h' not
                    found, 'EGL_PLATFORM_GBM_MESA' undeclared
    Classification: Platform
           Product: GStreamer
           Version: 1.14.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-base
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: n.wesp at phytec.de
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Created attachment 373187
  --> https://bugzilla.gnome.org/attachment.cgi?id=373187&action=edit
Patch with changes for successfully build

Hi everybody,

this week I had a problem to build our image with gstreamer.

Since we use 'meta-gstreamer1.0' instead of our layer, the installed version of
gstreamer changed from v1.12 to v1.14. Within gstreamer v1.14 gbm is supported
by gstreamer1.0-plugins-base_1.14 and will break our build process. Furthermore
I get an error because 'EGL_PLATFORM_GBM_MESA' is undefined in
'gst-libs/gst/gl/egl/gstgldisplay_egl.c'.
Note:    This only effect builds with an am335x processor. All builds with an
imx6 does build successfully.

Here is a little snipped of the output, I get from yocto:

| In file included from
../../../../../gst-plugins-base-1.14.1/gst-libs/gstgl/egl/gstglcontext_egl.c:55:0:
| ../../../../../gst-plugins-base-1.14.1/gst-libs/gst/gl/egl/../gbm
gstglwindow_gbm_egl.h:24:10: fatal error: gbm.h: No such file or directory
|  #include <gbm.h>
|           ^~~~~~~
| compilation terminated.
| Makefile:700: recipe for target 'libgstgl_egl_la-gstglcontext_egl.lo' failed
| make[5]: *** [libgstgl_egl_la-gstglcontext_egl.lo] Error 1
| make[5]: *** Waiting for unfinished jobs....
|
../../../../../gst-plugins-base-1.14.1/gst-libs/gst/gl/egl/gstgldisplay_egl.c:
In function 'gst_gl_display_egl_get_from_native':
| ../../../../../gst-plugins-base-1.14.1/gst-libs/gst/gl/egl
gstgldisplay_egl.c:157:39: error: 'EGL_PLATFORM_GBM_MESA' undeclared (first use
in this function); did you mean 'EGL_PLATFORM_WAYLAND'?
|      ret = _gst_eglGetPlatformDisplay (EGL_PLATFORM_GBM_MESA, (gpointer)
display,
|                                        ^~~~~~~~~~~~~~~~~~~~~
|                                        EGL_PLATFORM_WAYLAND
|
../../../../../gst-plugins-base-1.14.1/gst-libs/gst/gl/egl/gstgldisplay_egl.c:157:39:
note: each undeclared identifier is reported only once for each function it
appears in
| Makefile:693: recipe for target 'libgstgl_egl_la-gstgldisplay_egl.lo' failed
| make[5]: *** [libgstgl_egl_la-gstgldisplay_egl.lo] Error 1

I did some changes to get a complete build without WARNINGs and ERRORs and
added that patch to the 'attachment'.

Please have a look to the changes and let me know, if it is okay that way or if
I should change it.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list