diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2024-08-06 14:33:38 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-06 14:33:38 -0300 |
commit | dd91b8bb8b45b593deb795a94e5c6014b3a9d6d5 (patch) | |
tree | a97fcaee86729b285e99b3c2a468fe943aa7464f /recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch | |
parent | a1357042f9519501566ecd61007de166afed8a79 (diff) | |
parent | 0f663b89eaff6e2f8cbeb44966725b6e58633de3 (diff) | |
download | meta-freescale-dd91b8bb8b45b593deb795a94e5c6014b3a9d6d5.tar.gz |
Merge pull request #1874 from hiagofranco/upgrade_gstreamer-master
Update gstreamer and imx-opencl-converter from 6.6.3-1.0.0 to 6.6.23-2.0.0
Diffstat (limited to 'recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch')
-rw-r--r-- | recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch b/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch deleted file mode 100644 index 029b80e1..00000000 --- a/recipes-multimedia/gstreamer/gstreamer1.0-plugins-bad/0004-opencv-resolve-missing-opencv-data-dir-in-yocto-buil.patch +++ /dev/null | |||
@@ -1,33 +0,0 @@ | |||
1 | From 3bc5d48257032b6bbee532aad15062fbbcc43bfe Mon Sep 17 00:00:00 2001 | ||
2 | From: Andrey Zhizhikin <andrey.z@gmail.com> | ||
3 | Date: Mon, 27 Jan 2020 10:22:35 +0000 | ||
4 | Subject: [PATCH] opencv: resolve missing opencv data dir in yocto build | ||
5 | |||
6 | When Yocto build is performed, opencv searches for data dir using simple | ||
7 | 'test' command, this fails because pkg-config provides an absolute | ||
8 | path on the target which needs to be prepended by PKG_CONFIG_SYSROOT_DIR | ||
9 | in order for the 'test' utility to pick up the absolute path. | ||
10 | |||
11 | Upstream-Status: Inappropriate [OE-specific] | ||
12 | |||
13 | Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com> | ||
14 | Signed-off-by: Jose Quaresma <quaresma.jose@gmail.com> | ||
15 | |||
16 | --- | ||
17 | ext/opencv/meson.build | 3 +++ | ||
18 | 1 file changed, 3 insertions(+) | ||
19 | |||
20 | diff --git a/ext/opencv/meson.build b/ext/opencv/meson.build | ||
21 | index 1d86b90..b5c8b95 100644 | ||
22 | --- a/ext/opencv/meson.build | ||
23 | +++ b/ext/opencv/meson.build | ||
24 | @@ -87,6 +87,9 @@ if opencv_found | ||
25 | opencv_prefix = opencv_dep.get_variable('prefix') | ||
26 | gstopencv_cargs += ['-DOPENCV_PREFIX="' + opencv_prefix + '"'] | ||
27 | |||
28 | + pkgconf_sysroot = run_command(python3, '-c', 'import os; print(os.environ.get("PKG_CONFIG_SYSROOT_DIR"))').stdout().strip() | ||
29 | + opencv_prefix = pkgconf_sysroot + opencv_prefix | ||
30 | + | ||
31 | # Check the data dir used by opencv for its xml data files | ||
32 | # Use prefix from pkg-config to be compatible with cross-compilation | ||
33 | r = run_command('test', '-d', opencv_prefix + '/share/opencv', check: false) | ||