Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Yi Zhao <yi.zhao@windriver.com>
To: Ross Burton <ross.burton@intel.com>,
	<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] libsdl2: require GLES when building Wayland support
Date: Thu, 26 Nov 2015 14:33:44 +0800	[thread overview]
Message-ID: <5656A7C8.7080001@windriver.com> (raw)
In-Reply-To: <1447249213-28910-1-git-send-email-ross.burton@intel.com>

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,"



  reply	other threads:[~2015-11-26  6:33 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-11 13:40 [PATCH] libsdl2: require GLES when building Wayland support Ross Burton
2015-11-26  6:33 ` Yi Zhao [this message]
2015-11-26  9:02   ` Burton, Ross
2015-11-26  9:05     ` Yi Zhao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5656A7C8.7080001@windriver.com \
    --to=yi.zhao@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=ross.burton@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox