diff options
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-backport-libatomic-issue-patch.patch | 41 | ||||
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch | 20 | ||||
| -rw-r--r-- | meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.0.bb (renamed from meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.12.bb) | 16 |
3 files changed, 65 insertions, 12 deletions
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-backport-libatomic-issue-patch.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-backport-libatomic-issue-patch.patch new file mode 100644 index 0000000000..7ac605fb65 --- /dev/null +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0001-backport-libatomic-issue-patch.patch | |||
| @@ -0,0 +1,41 @@ | |||
| 1 | From f8c802aa778804f02b30a191cd3bcce285023076 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Lei Maohui <leimaohui@fujitsu.com> | ||
| 3 | Date: Wed, 2 Apr 2025 09:47:41 +0000 | ||
| 4 | Subject: [PATCH] backport libatomic issue patch | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8637/commits?commit_id=f2b5c0b6020b50f5173e449b45a6f7a7be31c48f] | ||
| 7 | |||
| 8 | Signed-off-by: Lei Maohui <leimaohui@fujitsu.com> | ||
| 9 | --- | ||
| 10 | gst-libs/gst/cuda/meson.build | 15 ++++++--------- | ||
| 11 | 1 file changed, 6 insertions(+), 9 deletions(-) | ||
| 12 | |||
| 13 | diff --git a/gst-libs/gst/cuda/meson.build b/gst-libs/gst/cuda/meson.build | ||
| 14 | index 3a25244..50ae027 100644 | ||
| 15 | --- a/gst-libs/gst/cuda/meson.build | ||
| 16 | +++ b/gst-libs/gst/cuda/meson.build | ||
| 17 | @@ -48,15 +48,12 @@ if host_system not in ['windows', 'linux'] | ||
| 18 | subdir_done() | ||
| 19 | endif | ||
| 20 | |||
| 21 | -# Linux ARM would need -latomic for std::atomic<int64_t> | ||
| 22 | -if host_system == 'linux' and host_machine.cpu_family() in ['aarch64', 'arm'] | ||
| 23 | - libatomic_dep = cxx.find_library('atomic', required: get_option('cuda-nvmm')) | ||
| 24 | - if not libatomic_dep.found() | ||
| 25 | - subdir_done() | ||
| 26 | - endif | ||
| 27 | - | ||
| 28 | - gstcuda_platform_dep += [libatomic_dep] | ||
| 29 | -endif | ||
| 30 | +# Check for libatomic for use of C11 atomics: some architectures need | ||
| 31 | +# to link explicitly to this library. | ||
| 32 | +# TODO: Once meson 1.7 is in use, this can be updated to | ||
| 33 | +# dependency('atomic') | ||
| 34 | +atomic_dep = cxx.find_library('atomic', required: false) | ||
| 35 | +gstcuda_platform_dep += [atomic_dep] | ||
| 36 | |||
| 37 | cuda_win32_headers = [ | ||
| 38 | 'initguid.h', | ||
| 39 | -- | ||
| 40 | 2.43.0 | ||
| 41 | |||
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch index 4d0d0e2693..d49cf5bd89 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | From bd389203124592cfd91fb020ea05a5e4ad1c1394 Mon Sep 17 00:00:00 2001 | 1 | From 11a08e3f3135b649b68714c77670c37559f3a33c Mon Sep 17 00:00:00 2001 |
| 2 | From: Andrey Zhizhikin <andrey.z@gmail.com> | 2 | From: Andrey Zhizhikin <andrey.z@gmail.com> |
| 3 | Date: Mon, 27 Jan 2020 10:22:35 +0000 | 3 | Date: Mon, 27 Jan 2020 10:22:35 +0000 |
| 4 | Subject: [PATCH] opencv: resolve missing opencv data dir in yocto build | 4 | Subject: [PATCH] opencv: resolve missing opencv data dir in yocto build |
| @@ -17,16 +17,16 @@ Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | |||
| 17 | 1 file changed, 3 insertions(+) | 17 | 1 file changed, 3 insertions(+) |
| 18 | 18 | ||
| 19 | diff --git a/gst-libs/gst/opencv/meson.build b/gst-libs/gst/opencv/meson.build | 19 | diff --git a/gst-libs/gst/opencv/meson.build b/gst-libs/gst/opencv/meson.build |
| 20 | index 1d337f1..f47939a 100644 | 20 | index 64e913e..42a0958 100644 |
| 21 | --- a/gst-libs/gst/opencv/meson.build | 21 | --- a/gst-libs/gst/opencv/meson.build |
| 22 | +++ b/gst-libs/gst/opencv/meson.build | 22 | +++ b/gst-libs/gst/opencv/meson.build |
| 23 | @@ -52,6 +52,9 @@ if opencv_found | 23 | @@ -61,6 +61,9 @@ gstopencv_cargs += ['-DOPENCV_PREFIX="' + opencv_prefix + '"'] |
| 24 | # /usr/include/opencv4/opencv2/flann/logger.h:83:36: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | 24 | # /usr/include/opencv4/opencv2/flann/logger.h:83:36: error: format string is not a string literal [-Werror,-Wformat-nonliteral] |
| 25 | gstopencv_cargs += cxx.get_supported_arguments(['-Wno-missing-include-dirs', '-Wno-format-nonliteral']) | 25 | gstopencv_cargs += cxx.get_supported_arguments(['-Wno-missing-include-dirs', '-Wno-format-nonliteral']) |
| 26 | 26 | ||
| 27 | + pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() | 27 | +pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() |
| 28 | + opencv_prefix = pkgconf_sysroot + opencv_prefix | 28 | +opencv_prefix = pkgconf_sysroot + opencv_prefix |
| 29 | + | 29 | + |
| 30 | # Check the data dir used by opencv for its xml data files | 30 | # Check the data dir used by opencv for its xml data files |
| 31 | # Use prefix from pkg-config to be compatible with cross-compilation | 31 | # Use prefix from pkg-config to be compatible with cross-compilation |
| 32 | r = run_command('test', '-d', opencv_prefix + '/share/opencv', check: false) | 32 | fsmod = import('fs') |
diff --git a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.12.bb b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.0.bb index 91d9150359..2e409558d1 100644 --- a/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.24.12.bb +++ b/meta/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad_1.26.0.bb | |||
| @@ -9,8 +9,9 @@ SRC_URI = "https://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad | |||
| 9 | file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \ | 9 | file://0001-fix-maybe-uninitialized-warnings-when-compiling-with.patch \ |
| 10 | file://0002-avoid-including-sys-poll.h-directly.patch \ | 10 | file://0002-avoid-including-sys-poll.h-directly.patch \ |
| 11 | file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ | 11 | file://0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch \ |
| 12 | file://0001-backport-libatomic-issue-patch.patch \ | ||
| 12 | " | 13 | " |
| 13 | SRC_URI[sha256sum] = "3d386af3d1dbd1a06c74a6251250c269b481e703f0e3255ba89ef6c1e063afea" | 14 | SRC_URI[sha256sum] = "f8287a84c5f66368a5a50da5f969994a02c47f20220ffe1ca3154193e65af216" |
| 14 | 15 | ||
| 15 | S = "${WORKDIR}/gst-plugins-bad-${PV}" | 16 | S = "${WORKDIR}/gst-plugins-bad-${PV}" |
| 16 | 17 | ||
| @@ -28,10 +29,11 @@ PACKAGECONFIG ??= " \ | |||
| 28 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ | 29 | ${@bb.utils.contains('DISTRO_FEATURES', 'wayland', 'wayland', '', d)} \ |
| 29 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \ | 30 | ${@bb.utils.contains('DISTRO_FEATURES', 'opengl', 'gl', '', d)} \ |
| 30 | bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \ | 31 | bz2 closedcaption curl dash dtls hls openssl sbc smoothstreaming \ |
| 31 | sndfile ttml uvch264 webp \ | 32 | sndfile ttml uvch264 webp analytics \ |
| 32 | ${@bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'rsvg', d)} \ | 33 | ${@bb.utils.contains('TUNE_FEATURES', 'mx32', '', 'rsvg', d)} \ |
| 33 | " | 34 | " |
| 34 | 35 | ||
| 36 | PACKAGECONFIG[analytics] = "-Danalyticsoverlay=enabled,-Danalyticsoverlay=disabled," | ||
| 35 | PACKAGECONFIG[aom] = "-Daom=enabled,-Daom=disabled,aom" | 37 | PACKAGECONFIG[aom] = "-Daom=enabled,-Daom=disabled,aom" |
| 36 | PACKAGECONFIG[assrender] = "-Dassrender=enabled,-Dassrender=disabled,libass" | 38 | PACKAGECONFIG[assrender] = "-Dassrender=enabled,-Dassrender=disabled,libass" |
| 37 | PACKAGECONFIG[avtp] = "-Davtp=enabled,-Davtp=disabled,libavtp" | 39 | PACKAGECONFIG[avtp] = "-Davtp=enabled,-Davtp=disabled,libavtp" |
| @@ -152,6 +154,16 @@ EXTRA_OEMESON += " \ | |||
| 152 | -Dwinscreencap=disabled \ | 154 | -Dwinscreencap=disabled \ |
| 153 | -Dwpe=disabled \ | 155 | -Dwpe=disabled \ |
| 154 | -Dzxing=disabled \ | 156 | -Dzxing=disabled \ |
| 157 | -Dlcevcdecoder=disabled \ | ||
| 158 | -Dlcevcencoder=disabled \ | ||
| 159 | -Dtensordecoders=disabled \ | ||
| 160 | -Dnvcomp=disabled \ | ||
| 161 | -Dnvdswrapper=disabled \ | ||
| 162 | -Dsvtjpegxs=disabled \ | ||
| 163 | -Dwebview2=disabled \ | ||
| 164 | -Daja=disabled \ | ||
| 165 | -Dcuda-nvmm=disabled \ | ||
| 166 | -Dd3d12=disabled \ | ||
| 155 | " | 167 | " |
| 156 | 168 | ||
| 157 | export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" | 169 | export OPENCV_PREFIX = "${STAGING_DIR_TARGET}${prefix}" |
