* [PATCH] libsdl2: require GLES when building Wayland support
@ 2015-11-11 13:40 Ross Burton
2015-11-26 6:33 ` Yi Zhao
0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2015-11-11 13:40 UTC (permalink / raw)
To: openembedded-core
The Wayland support requires GLES2 to be enabled as otherwise the EGL support
code in SDL2 isn't enabled.
| In file included from .../SDL2-2.0.3/src/video/wayland/SDL_waylandvideo.c:34:0:
| .../SDL2-2.0.3/src/video/wayland/SDL_waylandvideo.c: In function 'Wayland_CreateDevice':
| .../SDL2-2.0.3/src/video/wayland/SDL_waylandopengles.h:38:38: error: 'SDL_EGL_GetSwapInterval' undeclared (first use in this function)
| #define Wayland_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
Solve this by adding gles2 to the Wayland PACKAGECONFIG option.
Signed-off-by: Ross Burton <ross.burton@intel.com>
---
meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
index 97f64f3..f138f97 100644
--- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
+++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
@@ -39,7 +39,7 @@ PACKAGECONFIG ??= " \
${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
- ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
+ ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
"
PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"
--
2.1.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] libsdl2: require GLES when building Wayland support
2015-11-11 13:40 [PATCH] libsdl2: require GLES when building Wayland support Ross Burton
@ 2015-11-26 6:33 ` Yi Zhao
2015-11-26 9:02 ` Burton, Ross
0 siblings, 1 reply; 4+ messages in thread
From: Yi Zhao @ 2015-11-26 6:33 UTC (permalink / raw)
To: Ross Burton, openembedded-core
Hi Ross,
I tested this patch and found it also need to add libxkbcommon as a
dependency in PACKAGECONFIG[wayland]. Otherwise the wayland support
would skip if libxkbcommon is not built before even if we already enable
video-wayland.
Reproduce steps:
bitbake libxkbcommon -c clean
bitbake libsdl2 -c cleansstate && bitbake libsdl2
config.log:
[snip]
configure:19347: checking for Wayland support
configure:19357: result: no
[snip]
Thanks,
Yi
在 2015年11月11日 21:40, Ross Burton 写道:
> The Wayland support requires GLES2 to be enabled as otherwise the EGL support
> code in SDL2 isn't enabled.
>
> | In file included from .../SDL2-2.0.3/src/video/wayland/SDL_waylandvideo.c:34:0:
> | .../SDL2-2.0.3/src/video/wayland/SDL_waylandvideo.c: In function 'Wayland_CreateDevice':
> | .../SDL2-2.0.3/src/video/wayland/SDL_waylandopengles.h:38:38: error: 'SDL_EGL_GetSwapInterval' undeclared (first use in this function)
> | #define Wayland_GLES_GetSwapInterval SDL_EGL_GetSwapInterval
>
> Solve this by adding gles2 to the Wayland PACKAGECONFIG option.
>
> Signed-off-by: Ross Burton <ross.burton@intel.com>
> ---
> meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
> index 97f64f3..f138f97 100644
> --- a/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
> +++ b/meta/recipes-graphics/libsdl2/libsdl2_2.0.3.bb
> @@ -39,7 +39,7 @@ PACKAGECONFIG ??= " \
> ${@bb.utils.contains('DISTRO_FEATURES', 'alsa', 'alsa', '', d)} \
> ${@bb.utils.contains('DISTRO_FEATURES', 'directfb', 'directfb', '', d)} \
> ${@bb.utils.contains('DISTRO_FEATURES', 'pulseaudio', 'pulseaudio', '', d)} \
> - ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \
> + ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland gles2', '', d)} \
> ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11', '', d)} \
> "
> PACKAGECONFIG[alsa] = "--enable-alsa --disable-alsatest,--disable-alsa,alsa-lib,"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libsdl2: require GLES when building Wayland support
2015-11-26 6:33 ` Yi Zhao
@ 2015-11-26 9:02 ` Burton, Ross
2015-11-26 9:05 ` Yi Zhao
0 siblings, 1 reply; 4+ messages in thread
From: Burton, Ross @ 2015-11-26 9:02 UTC (permalink / raw)
To: Yi Zhao; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 386 bytes --]
On 26 November 2015 at 06:33, Yi Zhao <yi.zhao@windriver.com> wrote:
> I tested this patch and found it also need to add libxkbcommon as a
> dependency in PACKAGECONFIG[wayland]. Otherwise the wayland support would
> skip if libxkbcommon is not built before even if we already enable
> video-wayland.
>
Thanks for noticing that, can you sed a patch for that?
Cheers
Ross
[-- Attachment #2: Type: text/html, Size: 814 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] libsdl2: require GLES when building Wayland support
2015-11-26 9:02 ` Burton, Ross
@ 2015-11-26 9:05 ` Yi Zhao
0 siblings, 0 replies; 4+ messages in thread
From: Yi Zhao @ 2015-11-26 9:05 UTC (permalink / raw)
To: Burton, Ross; +Cc: OE-core
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]
在 2015年11月26日 17:02, Burton, Ross 写道:
>
> On 26 November 2015 at 06:33, Yi Zhao <yi.zhao@windriver.com
> <mailto:yi.zhao@windriver.com>> wrote:
>
> I tested this patch and found it also need to add libxkbcommon as
> a dependency in PACKAGECONFIG[wayland]. Otherwise the wayland
> support would skip if libxkbcommon is not built before even if we
> already enable video-wayland.
>
>
> Thanks for noticing that, can you sed a patch for that?
>
OK. I will send later.
Cheers
Yi
> Cheers
> Ross
[-- Attachment #2: Type: text/html, Size: 1919 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-11-26 9:05 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-11 13:40 [PATCH] libsdl2: require GLES when building Wayland support Ross Burton
2015-11-26 6:33 ` Yi Zhao
2015-11-26 9:02 ` Burton, Ross
2015-11-26 9:05 ` Yi Zhao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox