gsteglimage: Build fails due to missing defines in the included drm_fourcc.h header files
Installing on an RPi 3 via https://gist.github.com/sphaero/02717b0b35501ad94863
Output: http://ix.io/1zeb
CC libgstgl_egl_la-gsteglimage.lo
gsteglimage.c: In function ‘_gst_egl_image_check_dmabuf_direct’:
gsteglimage.c:672:25: error: ‘DRM_FORMAT_MOD_LINEAR’ undeclared (first use in this function)
if (modifiers[i] == DRM_FORMAT_MOD_LINEAR) {
^~~~~~~~~~~~~~~~~~~~~
gsteglimage.c:672:25: note: each undeclared identifier is reported only once for each function it appears in
gsteglimage.c: In function ‘gst_egl_image_from_dmabuf_direct’:
gsteglimage.c:759:25: error: ‘EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT’ undeclared (first use in this function)
attribs[atti++] = EGL_DMA_BUF_PLANE0_MODIFIER_LO_EXT;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gsteglimage.c:760:25: error: ‘DRM_FORMAT_MOD_LINEAR’ undeclared (first use in this function)
attribs[atti++] = DRM_FORMAT_MOD_LINEAR & 0xffffffff;
^~~~~~~~~~~~~~~~~~~~~
gsteglimage.c:761:25: error: ‘EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT’ undeclared (first use in this function)
attribs[atti++] = EGL_DMA_BUF_PLANE0_MODIFIER_HI_EXT;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gsteglimage.c:775:25: error: ‘EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT’ undeclared (first use in this function)
attribs[atti++] = EGL_DMA_BUF_PLANE1_MODIFIER_LO_EXT;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gsteglimage.c:777:25: error: ‘EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT’ undeclared (first use in this function)
attribs[atti++] = EGL_DMA_BUF_PLANE1_MODIFIER_HI_EXT;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gsteglimage.c:791:25: error: ‘EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT’ undeclared (first use in this function)
attribs[atti++] = EGL_DMA_BUF_PLANE2_MODIFIER_LO_EXT;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gsteglimage.c:793:25: error: ‘EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT’ undeclared (first use in this function)
attribs[atti++] = EGL_DMA_BUF_PLANE2_MODIFIER_HI_EXT;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Edited by Nicolas Dufresne