From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 1/5] package/qt: Add optional support for OpenGL
Date: Sun, 12 Jun 2016 22:14:34 +0200 [thread overview]
Message-ID: <20160612201434.GD3711@free.fr> (raw)
In-Reply-To: <1465762042-18942-1-git-send-email-bernd.kuhls@t-online.de>
Bernd, All,
On 2016-06-12 22:07 +0200, Bernd Kuhls spake thusly:
> OpenGL support is only available for the desktop variant of Qt4 and not
> the embedded one: http://code.qt.io/cgit/qt/qt.git/tree/configure#n6612
>
> This patch is needed to fix a compile error with libv4l which depends
> on OpenGL support if qt4 is used by libv4l as optional dependency.
>
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Regards,
Yann E. MORIN.
> ---
> v2: Added "none" option (Yann)
>
> package/qt/Config.in | 20 ++++++++++++++++++++
> package/qt/qt.mk | 3 +++
> 2 files changed, 23 insertions(+)
>
> diff --git a/package/qt/Config.in b/package/qt/Config.in
> index 0ab8417..14b13ce 100644
> --- a/package/qt/Config.in
> +++ b/package/qt/Config.in
> @@ -350,6 +350,24 @@ config BR2_PACKAGE_QT_PHONON_BACKEND
> Build the platform Phonon plugin.
> If unsure, say n.
>
> +choice
> + prompt "OpenGL API"
> + help
> + Select OpenGL API.
> +
> +config BR2_PACKAGE_QT_OPENGL_NONE
> + bool "No OpenGL support"
> +
> +comment "Desktop OpenGL not available (needs Qt standard (X11))"
> + depends on !BR2_PACKAGE_QT_X11
> +
> +config BR2_PACKAGE_QT_OPENGL_GL_DESKTOP
> + bool "Desktop OpenGL"
> + depends on BR2_PACKAGE_HAS_LIBGL
> + depends on BR2_PACKAGE_QT_X11
> + help
> + Use desktop OpenGL.
> +
> config BR2_PACKAGE_QT_OPENGL_ES
> bool "OpenGL ES v2.x support"
> depends on BR2_PACKAGE_HAS_LIBGLES
> @@ -357,6 +375,8 @@ config BR2_PACKAGE_QT_OPENGL_ES
> help
> Enable the OpenGL ES v2.x support.
>
> +endchoice
> +
> endif
>
> config BR2_PACKAGE_QT_DBUS
> diff --git a/package/qt/qt.mk b/package/qt/qt.mk
> index f29a671..d56fe7e 100644
> --- a/package/qt/qt.mk
> +++ b/package/qt/qt.mk
> @@ -336,6 +336,9 @@ QT_DEPENDENCIES += libgles libegl
> QT_CFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags egl`
> QT_CXXFLAGS += `$(PKG_CONFIG_HOST_BINARY) --cflags egl`
> QT_LDFLAGS += `$(PKG_CONFIG_HOST_BINARY) --libs egl`
> +else ifeq ($(BR2_PACKAGE_QT_OPENGL_GL_DESKTOP),y)
> +QT_CONFIGURE_OPTS += -opengl desktop
> +QT_DEPENDENCIES += libgl
> else
> QT_CONFIGURE_OPTS += -no-opengl
> endif
> --
> 2.8.1
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2016-06-12 20:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-12 20:07 [Buildroot] [PATCH v2 1/5] package/qt: Add optional support for OpenGL Bernd Kuhls
2016-06-12 20:07 ` [Buildroot] [PATCH v2 2/5] package/libv4l: qt4 support depends on OpenGL Bernd Kuhls
2016-06-12 20:15 ` Yann E. MORIN
2016-06-12 20:07 ` [Buildroot] [PATCH v2 3/5] package/libv4l: add optional support for alsa-lib Bernd Kuhls
2016-06-12 20:16 ` Yann E. MORIN
2016-06-12 20:07 ` [Buildroot] [PATCH v2 4/5] package/libv4l: add optional support for libgl Bernd Kuhls
2016-06-12 20:19 ` Yann E. MORIN
2016-06-12 20:07 ` [Buildroot] [PATCH v2 5/5] package/libv4l: add optional support for libglu Bernd Kuhls
2016-06-12 20:20 ` Yann E. MORIN
2016-06-12 20:14 ` Yann E. MORIN [this message]
2016-06-13 7:26 ` [Buildroot] [PATCH v2 1/5] package/qt: Add optional support for OpenGL 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=20160612201434.GD3711@free.fr \
--to=yann.morin.1998@free.fr \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.