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 796820 - opengl: build error: EGLuint64KHR undeclared
opengl: build error: EGLuint64KHR undeclared
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
1.14.1
Other Linux
: Normal normal
: 1.14.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-07-17 07:12 UTC by Iñigo Huguet
Modified: 2018-07-18 14:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (1.70 KB, patch)
2018-07-17 07:12 UTC, Iñigo Huguet
committed Details | Review

Description Iñigo Huguet 2018-07-17 07:12:21 UTC
Created attachment 373072 [details] [review]
Proposed patch

Gstreamer version: 1.14.1
OS: Linux on embedded system, built with Buildroot (Kernel 3.4)
Hardware: processor Allwinner A20 (ARM), GPU Mali400MP2
Other relevant info: installed sunxi-mali driver, with OpenGLES - EGL+X11

Building gst1-plugins-base, I get this error log (it's in Spanish, sorry):

gsteglimage.c: En la función ‘gst_egl_image_export_dmabuf’:
gsteglimage.c:483:7: error: nombre de tipo ‘EGLuint64KHR’ desconocido
       EGLuint64KHR * modifiers);
       ^~~~~~~~~~~~
gsteglimage.c:493:3: error: ‘gst_eglExportDMABUFImageQueryMESA’ no se declaró aquí (primer uso en esta función)
   gst_eglExportDMABUFImageQueryMESA =
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gsteglimage.c:493:3: nota: cada identificador sin declarar se reporta sólo una vez para cada función en el que aparece
gsteglimage.c:516:8: aviso: declaración implícita de la función ‘gst_eglExportDMABUFImageQueryMESA’ [-Wimplicit-function-declaration]
   if (!gst_eglExportDMABUFImageQueryMESA (egl_display, image->image,
        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gsteglimage.c:516:3: aviso: declaración externa anidada de ‘gst_eglExportDMABUFImageQueryMESA’ [-Wnested-externs]
   if (!gst_eglExportDMABUFImageQueryMESA (egl_display, image->image,
   ^~ 

I attach a patch that fix the problem for me, with the solution suggested by user ystreet00 in the IRC channel. It builds and I have Gstreamer working fine.
Comment 1 Iñigo Huguet 2018-07-17 07:20:42 UTC
Forgot to say that Buildroot builds Gstreamer using autotools, in the case this is relevant.
Comment 2 Matthew Waters (ystreet00) 2018-07-18 04:02:51 UTC
commit 48a01788575e5b72d44a3b0e931b3dbedfb84b12
Author: Iñigo Huguet <inigohuguet@fanamoel.com>
Date:   Mon Jul 16 16:01:34 2018 +0200

    gl/build: fixed failed compilation due to missing EGLuint64KHR typedef
    
    [Matthew Waters]: add meson differences
    
    https://bugzilla.gnome.org/show_bug.cgi?id=796820