GNOME Bugzilla – Bug 796820
opengl: build error: EGLuint64KHR undeclared
Last modified: 2018-07-18 14:03:42 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.
Forgot to say that Buildroot builds Gstreamer using autotools, in the case this is relevant.
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