Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v1] qt5multimedia: fix plugins videonode egl x11 header related compile failure
Date: Mon, 3 Jul 2017 21:02:40 +0200	[thread overview]
Message-ID: <20170703210240.6a3f21bb@windsurf> (raw)
In-Reply-To: <20170703204654.751617d1@gmx.net>

Hello,

On Mon, 3 Jul 2017 20:46:54 +0200, Peter Seiderer wrote:

> On Sun, 2 Jul 2017 23:14:49 +0200, Thomas Petazzoni <thomas.petazzoni@free-electrons.com> wrote:
> 
> > Hello,
> > 
> > On Sun, 2 Jul 2017 21:01:27 +0200, Peter Seiderer wrote:
> >   
> > > Same fixing pattern as for qt5base (and for qtbase accepted upstream, see e.g. [1]),  
> > 
> > Well, [1] is about adding QT_EGL_NO_X11, which is a QT definition. It
> > is very different from MESA_EGL_NO_X11_HEADERS, which is an
> > OpenGL-level definition.  
> 
> The missing link is in file src/platformsupport/eglconvenience/qt_egl_p.h line 54ff:
> 
>  54 #ifdef QT_EGL_NO_X11
>  55 # define MESA_EGL_NO_X11_HEADERS // MESA
>  56 # define WIN_INTERFACE_CUSTOM    // NV
>  57 #endif // QT_EGL_NO_X11
>  58 
>  59 #ifdef QT_EGL_WAYLAND
>  60 # define WAYLAND // NV
>  61 #endif // QT_EGL_WAYLAND
>  62 
>  63 #include <EGL/egl.h>
>  64 #include <EGL/eglext.h>
> 
> QT_EGL_NO_X11 forces MESA_EGL_NO_X11_HEADERS before the egl headers are included...

Ah, okay, indeed. But still, I really think it should be the
responsibility of the OpenGL provider to define MESA_EGL_NO_X11_HEADERS
in its .pc files, rather than having this logic duplicated in all
packages "consuming" the OpenGL API.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

  reply	other threads:[~2017-07-03 19:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-26 21:13 [Buildroot] [PATCH v1] qt5multimedia: fix plugins videonode egl x11 header related compile failure Peter Seiderer
2017-07-01 22:33 ` Thomas Petazzoni
2017-07-02 19:01   ` Peter Seiderer
2017-07-02 21:14     ` Thomas Petazzoni
2017-07-03 18:46       ` Peter Seiderer
2017-07-03 19:02         ` Thomas Petazzoni [this message]
2017-07-05 19:53       ` Peter Seiderer
2017-07-05 20:03         ` Thomas Petazzoni

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=20170703210240.6a3f21bb@windsurf \
    --to=thomas.petazzoni@free-electrons.com \
    --cc=buildroot@busybox.net \
    /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