From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: John Ernberg <j@j-ernberg.se>
Cc: buildroot@buildroot.org, John Ernberg <john.ernberg@actia.se>,
Marcus Folkesson <marcus.folkesson@gmail.com>
Subject: Re: [Buildroot] [PATCH v2 5/8] package/libcamera-apps: Only enable EGL if both epoxy and xlib_libX11 are selected
Date: Wed, 21 Oct 2026 23:48:26 +0200 [thread overview]
Message-ID: <atkwl965cKxez-Es@windsurf> (raw)
In-Reply-To: <20260614155328.304282-6-j@j-ernberg.se>
On Sun, Jun 14, 2026 at 05:53:25PM +0200, John Ernberg wrote:
> Since release 0.2 of the rpicam-apps these dependencies have been required
> if enable_egl=True is given to meson. [1]
>
> The dependency check was broken since commit 3fac163b9315
> ("package/libcamera-apps: bump to version 1.1.0") in early 2023.
>
> Link: https://github.com/raspberrypi/rpicam-apps/commit/c8351a09174f143424884081a69b6dd8018f4ba3#diff-a2468a39040f9f883e5b03e1523dd4e73fd43ad9ea87f600772477b890cdd655L18-R22
This commit is only reorganizing meson options, I think the commit
actually introducing the requirement for epoxy+xlib is older than this
one.
> Cc: Marcus Folkesson <marcus.folkesson@gmail.com>
> Signed-off-by: John Ernberg <j@j-ernberg.se>
I believe this would fix:
https://autobuild.buildroot.net/results/21d/21dcd20d70c12758083733b0e5bc8f1efc671370/build-end.log
> -ifeq ($(BR2_PACKAGE_XORG7),y)
> -LIBCAMERA_APPS_DEPENDENCIES += \
> - $(if $(BR2_PACKAGE_LIBEPOXY),libepoxy) \
> - $(if $(BR2_PACKAGE_XLIB_LIBX11),xlib_libX11)
> +ifeq ($(BR2_PACKAGE_LIBEPOXY)$(BR2_PACKAGE_XLIB_LIBX11),yy)
> +LIBCAMERA_APPS_DEPENDENCIES += libepoxy xlib_libX11
> LIBCAMERA_APPS_CONF_OPTS += -Denable_egl=enabled
> else
> LIBCAMERA_APPS_CONF_OPTS += -Denable_egl=disabled
However, I'm not 100% convinced this is the right fix because the
Config.in also has:
select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7 && (BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
select BR2_PACKAGE_LIBDRM if BR2_PACKAGE_XORG7 && (BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
select BR2_PACKAGE_LIBEPOXY if BR2_PACKAGE_XORG7 && (BR2_PACKAGE_HAS_LIBEGL || BR2_PACKAGE_HAS_LIBGL)
I can't really wrap my head around what's the right way to deal with
all those dependencies.
With your change:
+ifeq ($(BR2_PACKAGE_LIBEPOXY)$(BR2_PACKAGE_XLIB_LIBX11),yy)
+LIBCAMERA_APPS_DEPENDENCIES += libepoxy xlib_libX11
LIBCAMERA_APPS_CONF_OPTS += -Denable_egl=enabled
We may be passing -Denable_egl=enabled even if there's no OpenGL
support at all: libepoxy can now be enabled without any OpenGL
provider enabled, and xlib_libx11 also doesn't guarantee that we have
OpenGL support.
I honestly don't quite understand those selects in the Config.in
file. My understanding is that libcamera-apps has a preview/ folder
with several variants: drm-preview, egl-preview, wayland-egl-preview,
qt-preview and null-preview. Maybe we should instead handle these more
clearly/explicitly?
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-10-21 21:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-14 15:53 [Buildroot] [PATCH v2 0/8] Second set of fixes for build failures and PPD file conflicts John Ernberg
2026-06-14 15:53 ` [Buildroot] [PATCH v2 1/8] package/foot: Prefer ncurses terminfo if ncurses is selected John Ernberg
2026-10-21 21:18 ` Thomas Petazzoni via buildroot
2026-06-14 15:53 ` [Buildroot] [PATCH v2 2/8] package/libest: Drop java support John Ernberg
2026-10-21 21:21 ` Thomas Petazzoni via buildroot
2026-10-22 7:06 ` Александр Макаров
2026-10-22 21:12 ` John Ernberg
[not found] ` <CAAHg4ZgbxrM1D8aLNBeF6i6GEMw_Ai6eaup-c2SmB4rVVG6hbw__27146.9597982772$1792703609$gmane$org@mail.gmail.com>
2026-10-22 21:22 ` Bernd Kuhls
2026-06-14 15:53 ` [Buildroot] [PATCH v2 3/8] package/rtl8188eu: Conflict with the linux-firmware rt81xx sub-package John Ernberg
2026-06-14 15:53 ` [Buildroot] [PATCH v2 4/8] package/{skeleton-init-, }systemd: Install legacy.conf from the systemd package John Ernberg
2026-06-14 15:53 ` [Buildroot] [PATCH v2 5/8] package/libcamera-apps: Only enable EGL if both epoxy and xlib_libX11 are selected John Ernberg
2026-10-21 21:48 ` Thomas Petazzoni via buildroot [this message]
2026-10-22 20:57 ` John Ernberg
2026-06-14 15:53 ` [Buildroot] [PATCH v2 6/8] package/util-linux-libs: Do not install to target John Ernberg
2026-09-25 10:25 ` Fiona Klute via buildroot
2026-09-28 21:10 ` Fiona Klute via buildroot
2026-10-10 9:22 ` Thomas Perale via buildroot
2026-06-14 15:53 ` [Buildroot] [PATCH v2 7/8] package/python-xlib: Drop the package John Ernberg
2026-06-14 15:53 ` [Buildroot] [PATCH v2 8/8] package/python-html5lib: " John Ernberg
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=atkwl965cKxez-Es@windsurf \
--to=buildroot@buildroot.org \
--cc=j@j-ernberg.se \
--cc=john.ernberg@actia.se \
--cc=marcus.folkesson@gmail.com \
--cc=thomas.petazzoni@bootlin.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