Skip to content

Commit ea6d967

Browse files
petegriffinkraj
authored andcommitted
libcamera: update meson options to build pipeline handlers & cam utility
Enable uvcvideo, simple, and vimc pipeline handlers in libcamera. Without any pipeline handlers libcamera can't capture any frames. Also enable cam utility with is a cli utility that can use the library to capture some frames. Signed-off-by: Peter Griffin <[email protected]> Signed-off-by: Khem Raj <[email protected]>
1 parent 014835f commit ea6d967

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

meta-multimedia/recipes-multimedia/libcamera/libcamera.bb

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,24 @@ PV = "202105+git${SRCPV}"
1818

1919
S = "${WORKDIR}/git"
2020

21-
DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls boost chrpath-native"
21+
DEPENDS = "python3-pyyaml-native python3-jinja2-native python3-ply-native python3-jinja2-native udev gnutls boost chrpath-native libevent"
2222
DEPENDS += "${@bb.utils.contains('DISTRO_FEATURES', 'qt', 'qtbase qtbase-native', '', d)}"
2323

2424
PACKAGES =+ "${PN}-gst"
2525

2626
PACKAGECONFIG ??= ""
2727
PACKAGECONFIG[gst] = "-Dgstreamer=enabled,-Dgstreamer=disabled,gstreamer1.0 gstreamer1.0-plugins-base"
2828

29+
EXTRA_OEMESON = " \
30+
-Dpipelines=uvcvideo,simple,vimc \
31+
-Dipas=vimc \
32+
-Dv4l2=true \
33+
-Dcam=enabled \
34+
-Dlc-compliance=disabled \
35+
-Dtest=false \
36+
-Ddocumentation=disabled \
37+
"
38+
2939
RDEPENDS:${PN} = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland qt', 'qtwayland', '', d)}"
3040

3141
inherit meson pkgconfig python3native
@@ -59,4 +69,6 @@ FILES:${PN} += " ${libdir}/libcamera.so.0.0.0"
5969
FILES:${PN}-dev += " ${libdir}/libcamera-base.so"
6070
FILES:${PN}-dev += " ${libdir}/libcamera-base.so.0"
6171
FILES:${PN} += " ${libdir}/libcamera-base.so.0.0.0"
72+
FILES:${PN} += " ${libdir}/v4l2-compat.so"
6273
FILES:${PN}-gst = "${libdir}/gstreamer-1.0/libgstlibcamera.so"
74+
FILES:${PN} += " ${bindir}/cam"

0 commit comments

Comments
 (0)