live555: Install a pkg-config file
PATCH 1/3 live555: Install a pkg-config file
Upstream ships no .pc file, so consumers have to hand-code the include directories and library list. Newer v4l2rtspserver only looks for live555 through pkg-config and otherwise downloads its own copy at configure time.
Generate live555.pc
--- .../recipes-multimedia/live555/live555_20260112.bb | 11 +++++++++++ 1 file changed, 11 insertions(+)
meta-oe/recipes-multimedia/live555/live555_20260112.bb +11 -0
@@ -57,6 +57,17 @@ do_install() { install -m 0755 ${S}/testProgs/${i} ${D}${bindir}/ done install -m 0755 ${S}/mediaServer/live555MediaServer ${D}${bindir}/ + + # Upstream ships no pkg-config file; provide one + install -d ${D}${libdir}/pkgconfig + cat > ${D}${libdir}/pkgconfig/live555.pc <<'EOF' +Name: live555 +Description: ${DESCRIPTION} +Version: ${PV} +Requires: openssl +Libs: -L${libdir} -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment +Cflags: -I${includedir}/liveMedia -I${includedir}/groupsock -I${includedir}/BasicUsageEnvironment -I${includedir}/UsageEnvironment +EOF } RDEPENDS:${PN}-dev = ""
PATCH 2/3 v4l2rtspserver: new recipe
From: Patrick Areny <[email protected]>
v4l2rtspserver is an streamer feed from :
- Video4Linux devices that support H264, HEVC, JPEG, VP8 or VP9 capture.
- ALSA devices that support PCM S16_BE, S16_LE, S32_BE or S32_LE
--- .../v4l2apps/v4l2rtspserver_0.3.8.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb
meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb new file +12 -0
@@ -0,0 +1,12 @@ +SUMMARY = "V4L2rtsp streaming server" +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://UNLICENSE;md5=911690f51af322440237a253d695d19f" + +SRC_URI = "gitsm://github.com/mpromonet/v4l2rtspserver.git;branch=master;protocol=https" +SRCREV = "b12cf350dc573ab0ff9d1b51a21daf3c218b614e" + +S = "${WORKDIR}/git" + +inherit pkgconfig cmake + +DEPENDS += "live555 log4cpp"
Re: [oe] [meta-oe][PATCH 2/3] v4l2rtspserver: new recipe
Quoted 20 lines · Khem Raj via lists.openembedded.org
From: Patrick Areny <[email protected]>
v4l2rtspserver is an streamer feed from :
- Video4Linux devices that support H264, HEVC, JPEG, VP8 or VP9 capture.
- ALSA devices that support PCMS16_BE,S16_LE,S32_BEorS32_LESigned-off-by Patrick Areny <[email protected]>Signed-off-by Khem Raj <[email protected]>--- .../v4l2apps/v4l2rtspserver_0.3.8.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bbmeta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb new file +0
-0
meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb line 5
Quoted 5 lines
meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb new file +5
-0@@ -0,0 +1,12 @@ +SUMMARY = "V4L2rtsp streaming server" +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://UNLICENSE;md5=911690f51af322440237a253d695d19f" + +SRC_URI = "gitsm://github.com/mpromonet/v4l2rtspserver.git;branch=master;protocol=https"
can please also include tag=v${PV} in the SRC_URI
Quoted 16 lines
meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb new file +7
-1+SRCREV = "b12cf350dc573ab0ff9d1b51a21daf3c218b614e" + +S = "${WORKDIR}/git" + +inherit pkgconfig cmake + +DEPENDS += "live555 log4cpp" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#130373): https://lists.openembedded.org/g/openembedded-devel/message/130373
Mute This Topic: https://lists.openembedded.org/mt/121457183/3619737
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [oe] [meta-oe][PATCH 2/3] v4l2rtspserver: new recipe
Quoted 17 lines · Ankur Tyagi
Quoted 14 lines · Khem Raj via lists.openembedded.org
From: Patrick Areny <[email protected]>
v4l2rtspserver is an streamer feed from :
- Video4Linux devices that support H264, HEVC, JPEG, VP8 or VP9 capture.
- ALSA devices that support PCMS16_BE,S16_LE,S32_BEorS32_LESigned-off-by Patrick Areny <[email protected]>Signed-off-by Khem Raj <[email protected]>--- .../v4l2apps/v4l2rtspserver_0.3.8.bb | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb
Quoted 14 lines
meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb line 5
Quoted 11 lines
meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb new file +5
-0@@ -0,0 +1,12 @@ +SUMMARY = "V4L2rtsp streaming server" +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://UNLICENSE;md5=911690f51af322440237a253d695d19f" + +SRC_URI = "gitsm://github.com/mpromonet/v4l2rtspserver.git;branch=master;protocol=https"can please also include tag=v${PV} in the
SRC_URI
nvm, its already addressed in the version upgrade patch.
Quoted 16 lines
Quoted 16 lines
meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb new file +7
-1+SRCREV = "b12cf350dc573ab0ff9d1b51a21daf3c218b614e" + +S = "${WORKDIR}/git" + +inherit pkgconfig cmake + +DEPENDS += "live555 log4cpp" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#130373): https://lists.openembedded.org/g/openembedded-devel/message/130373
Mute This Topic: https://lists.openembedded.org/mt/121457183/3619737
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
PATCH 3/3 v4l2rtspserver: upgrade 0.3.8 -> 0.3.13
In reply to Khem Raj- live555 is now found via pkg-config (see the live555 change adding live555.pc); without it CMake would download live555 at configure time.
- Disable CMake's Git lookup: it runs "git submodule update --init" and "git describe" from the build directory, which can act on an unrelated repository enclosing TMPDIR. Pass the version through V4L2RTSPSERVER_VERSION instead.
- Add openssl to DEPENDS, it is linked directly.
- Drop S, the default now matches.
- Turn the automagic ALSA and systemd detection into PACKAGECONFIGs defaulting to DISTRO_FEATURES, and make log4cpp a PACKAGECONFIG too. log4cpp was in DEPENDS but never used, since upstream only links it with -DLOG4CPP=ON; it is now enabled by default.
- Register the new systemd unit, but leave it disabled: it streams /dev/video0 to the network, so images should opt in.
License-Update: License file renamed to Unlicense.txt; its only change is the unlicense.org URL switching to https.
AI-Generated: Uses Claude Code
--- .../v4l2apps/v4l2rtspserver_0.3.13.bb | 23 +++++++++++++++++++ .../v4l2apps/v4l2rtspserver_0.3.8.bb | 12 ---------- 2 files changed, 23 insertions(+), 12 deletions(-) create mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.13.bb delete mode 100644 meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb
meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.13.bb new file +23 -0
@@ -0,0 +1,23 @@ +SUMMARY = "V4L2rtsp streaming server" +LICENSE = "Unlicense" +LIC_FILES_CHKSUM = "file://Unlicense.txt;md5=d88e9e08385d2a17052dac348bde4bc1" + +SRC_URI = "gitsm://github.com/mpromonet/v4l2rtspserver.git;branch=master;protocol=https;tag=v${PV}" +SRCREV = "fafc8cbd1c93bf0f7453efa8b7718c68941fd5eb" + +inherit pkgconfig cmake systemd + +DEPENDS += "live555 openssl" + +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'alsa systemd', d)} log4cpp" +PACKAGECONFIG[alsa] = "-DALSA=ON,-DALSA=OFF,alsa-lib" +PACKAGECONFIG[log4cpp] = "-DLOG4CPP=ON,-DLOG4CPP=OFF,log4cpp" +PACKAGECONFIG[systemd] = "-DSYSTEMD=ON,-DSYSTEMD=OFF,systemd" + +# Keep CMake from running "git describe", Hand it the version instead. +EXTRA_OECMAKE += "-DCMAKE_DISABLE_FIND_PACKAGE_Git=ON" +export V4L2RTSPSERVER_VERSION = "${PV}" + +SYSTEMD_SERVICE:${PN} = "${@bb.utils.contains('PACKAGECONFIG', 'systemd', 'v4l2rtspserver.service', '', d)}" +# The unit streams /dev/video0 to the network; let the image opt in. +SYSTEMD_AUTO_ENABLE = "disable"
meta-oe/recipes-multimedia/v4l2apps/v4l2rtspserver_0.3.8.bb deleted +0 -12
@@ -1,12 +0,0 @@ -SUMMARY = "V4L2rtsp streaming server" -LICENSE = "Unlicense" -LIC_FILES_CHKSUM = "file://UNLICENSE;md5=911690f51af322440237a253d695d19f" - -SRC_URI = "gitsm://github.com/mpromonet/v4l2rtspserver.git;branch=master;protocol=https" -SRCREV = "b12cf350dc573ab0ff9d1b51a21daf3c218b614e" - -S = "${WORKDIR}/git" - -inherit pkgconfig cmake - -DEPENDS += "live555 log4cpp"