[Buildroot] [PATCH v2 2/2] package/libcamera: add Qt6 qcam support
Quentin Schulz
foss+buildroot at 0leil.net
Tue Apr 15 09:57:29 UTC 2025
From: Quentin Schulz <quentin.schulz at cherry.de>
This enables support for Qt6 qcam example application from libcamera.
A font needs to be installed, e.g. cantarell or dejavu will do,
otherwise characters are rendered as square characters.
It seems to depend on UTF-8 as well (via BR2_GENERATE_LOCALE) otherwise
the following messages can be observed:
"""
Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, but has failed to switch to one.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
"""
Signed-off-by: Quentin Schulz <quentin.schulz at cherry.de>
---
package/libcamera/libcamera.mk | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/package/libcamera/libcamera.mk b/package/libcamera/libcamera.mk
index 6877662bdf02df1c7f8ff37039b3096e96e52481..c69ff1b9f8f96b59698f1388162c9ae347a179d6 100644
--- a/package/libcamera/libcamera.mk
+++ b/package/libcamera/libcamera.mk
@@ -85,6 +85,12 @@ LIBCAMERA_CONF_OPTS += -Dcam=enabled
LIBCAMERA_DEPENDENCIES += libevent
endif
+ifeq ($(BR2_PACKAGE_QT6BASE_WIDGETS)$(BR2_PACKAGE_QT6BASE_OPENGL)$(BR2_PACKAGE_QT6BASE_FONTCONFIG),yyy)
+LIBCAMERA_CONF_OPTS += -Dqcam=enabled
+# qcam also needs a font, don't forget to add one to your image (e.g. dejavu).
+LIBCAMERA_DEPENDENCIES += qt6base
+endif
+
ifeq ($(BR2_PACKAGE_ELFUTILS),y)
# Optional dependency on libdw
LIBCAMERA_DEPENDENCIES += elfutils
--
2.49.0
More information about the buildroot
mailing list