From 62cf2081e6e274d80bfc867c8ee2f48e1751c7df Mon Sep 17 00:00:00 2001 From: Khang Nguyen Date: Wed, 14 Mar 2018 16:20:36 +0700 Subject: rcar-gen3: glmark2: Fix glmark2 build failure glmark2 fails to build in YP v2.4 environment with the following error: | Checking for 'libpng12' : not found | Checking for 'libpng15' : not found | Checking for 'gbm' : not found This commit modifies recipe to fix this issue. It also applies a patch to avoid the following error: | ../src/gl-state-egl.cpp: In member function 'bool GLStateEGL::gotValidDisplay()': | ../src/gl-state-egl.cpp:420:41: error: 'EGL_PLATFORM_GBM_KHR' was not declared in this scope | #define GLMARK2_NATIVE_EGL_DISPLAY_ENUM EGL_PLATFORM_GBM_KHR | ^ | ../src/gl-state-egl.cpp:444:17: note: in expansion of macro 'GLMARK2_NATIVE_EGL_DISPLAY_ENUM' | GLMARK2_NATIVE_EGL_DISPLAY_ENUM, native_display_, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ../src/gl-state-egl.cpp:420:41: note: suggested alternative: 'EGL_PLATFORM_GBM_MESA' | #define GLMARK2_NATIVE_EGL_DISPLAY_ENUM EGL_PLATFORM_GBM_KHR | ^ | ../src/gl-state-egl.cpp:444:17: note: in expansion of macro 'GLMARK2_NATIVE_EGL_DISPLAY_ENUM' | GLMARK2_NATIVE_EGL_DISPLAY_ENUM, native_display_, NULL); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Khang Nguyen Signed-off-by: Takamitsu Honda --- meta-rcar-gen3/recipes-benchmark/glmark2/glmark2_git.bbappend | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 meta-rcar-gen3/recipes-benchmark/glmark2/glmark2_git.bbappend (limited to 'meta-rcar-gen3/recipes-benchmark/glmark2/glmark2_git.bbappend') diff --git a/meta-rcar-gen3/recipes-benchmark/glmark2/glmark2_git.bbappend b/meta-rcar-gen3/recipes-benchmark/glmark2/glmark2_git.bbappend new file mode 100644 index 0000000..4cfc8d8 --- /dev/null +++ b/meta-rcar-gen3/recipes-benchmark/glmark2/glmark2_git.bbappend @@ -0,0 +1,7 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" +SRC_URI_append = " \ + file://0001-gl-state-egl-Avoid-build-failure-due-to-miss-macro-d.patch \ +" + +PACKAGECONFIG[drm-gl] = ",,virtual/libgl libdrm libgbm" +PACKAGECONFIG[drm-gles2] = ",,virtual/libgles2 libdrm libgbm" -- cgit 1.2.3-korg