From 4f50fe1d6f208f535d663325288e34fce4f0c358 Mon Sep 17 00:00:00 2001 From: Thao Nguyen Date: Sat, 5 Aug 2017 16:04:29 +0700 Subject: rcar-gen3: gles-user-module: WORKAROUND to fix compile error because of lacking GLES3/gl3ext.h Gstreamer1.0-plugins-bad requires GLES3/gl3ext.h, which should be provided by gles-user-module. However, current GFX libraries do not have GLES3/gl3ext.h. Hence, temporarily add GLES3/gl3ext.h from mesa to gles-user-module to overcome this issue. Signed-off-by: Thao Nguyen Signed-off-by: Thuy Tran Signed-off-by: Takamitsu Honda --- .../gles-module/gles-user-module.bb | 1 + ...using-GLES3-gl3ext.h-from-mesa-to-prevent.patch | 51 ++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module/0001-WORKAROUND-using-GLES3-gl3ext.h-from-mesa-to-prevent.patch (limited to 'meta-rcar-gen3/recipes-graphics') diff --git a/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bb b/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bb index 1669262..7d38a52 100644 --- a/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bb +++ b/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bb @@ -19,6 +19,7 @@ SRC_URI_r8a77965 = "file://r8a77965_linux_gsx_binaries_gles.tar.bz2" SRC_URI_append = " \ file://change-shell.patch \ file://rc.pvr.service \ + file://0001-WORKAROUND-using-GLES3-gl3ext.h-from-mesa-to-prevent.patch \ " inherit update-rc.d systemd diff --git a/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module/0001-WORKAROUND-using-GLES3-gl3ext.h-from-mesa-to-prevent.patch b/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module/0001-WORKAROUND-using-GLES3-gl3ext.h-from-mesa-to-prevent.patch new file mode 100644 index 0000000..a5773c4 --- /dev/null +++ b/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module/0001-WORKAROUND-using-GLES3-gl3ext.h-from-mesa-to-prevent.patch @@ -0,0 +1,51 @@ +From d1f61050d5723681cd27da60d86885618003f952 Mon Sep 17 00:00:00 2001 +From: Thao Nguyen +Date: Sat, 5 Aug 2017 12:39:02 +0700 +Subject: [PATCH] WORKAROUND: using GLES3/gl3ext.h from mesa to prevent error + of gstreamer1.0-plugins-bad + +According to the Khronos OpenGL ES Registry, the extension header for +GLES 3.0 is actually . +gl3ext.h should be empty and provided only for legacy compatibility. + +Signed-off-by: Thao Nguyen +Signed-off-by: Thuy Tran +--- + usr/include/GLES3/gl3ext.h | 24 ++++++++++++++++++++++++ + 1 file changed, 24 insertions(+) + create mode 100644 usr/include/GLES3/gl3ext.h + +diff --git a/usr/include/GLES3/gl3ext.h b/usr/include/GLES3/gl3ext.h +new file mode 100644 +index 0000000..4d4ea96 +--- /dev/null ++++ b/usr/include/GLES3/gl3ext.h +@@ -0,0 +1,24 @@ ++#ifndef __gl3ext_h_ ++#define __gl3ext_h_ ++ ++#include ++/* $Revision: 17809 $ on $Date:: 2012-05-14 08:03:36 -0700 #$ */ ++ ++/* ++ * This document is licensed under the SGI Free Software B License Version ++ * 2.0. For details, see http://oss.sgi.com/projects/FreeB/ . ++ */ ++ ++/* OpenGL ES 3 Extensions ++ * ++ * After an OES extension's interactions with OpenGl ES 3.0 have been documented, ++ * its tokens and function definitions should be added to this file in a manner ++ * that does not conflict with gl2ext.h or gl3.h. ++ * ++ * Tokens and function definitions for extensions that have become standard ++ * features in OpenGL ES 3.0 will not be added to this file. ++ * ++ * Applications using OpenGL-ES-2-only extensions should include gl2ext.h ++ */ ++ ++#endif /* __gl3ext_h_ */ ++ +-- +1.9.1 + -- cgit 1.2.3-korg