diff options
| author | Khem Raj <raj.khem@gmail.com> | 2022-12-01 12:17:01 -0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-12-03 08:11:30 -0800 |
| commit | 72dc42966be7da07f9553f75b825123b81704f0b (patch) | |
| tree | fb2dd85d1d6e907ae10a5c7ead196e359d8f381a /meta-oe/recipes-support | |
| parent | 01996cbe10fb3fd3950833269c7aadb9bae6f032 (diff) | |
| download | meta-openembedded-72dc42966be7da07f9553f75b825123b81704f0b.tar.gz | |
opencv: Fix build with ffmpeg 5.1+
Backport a relevant patch
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-oe/recipes-support')
| -rw-r--r-- | meta-oe/recipes-support/opencv/opencv/0001-Add-missing-header-for-LIBAVCODEC_VERSION_INT.patch | 26 | ||||
| -rw-r--r-- | meta-oe/recipes-support/opencv/opencv_4.6.0.bb | 1 |
2 files changed, 27 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/opencv/opencv/0001-Add-missing-header-for-LIBAVCODEC_VERSION_INT.patch b/meta-oe/recipes-support/opencv/opencv/0001-Add-missing-header-for-LIBAVCODEC_VERSION_INT.patch new file mode 100644 index 0000000000..59da6ab320 --- /dev/null +++ b/meta-oe/recipes-support/opencv/opencv/0001-Add-missing-header-for-LIBAVCODEC_VERSION_INT.patch | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | From d6bdd0a91eb0ed57688c0af5ba5088cf0afdc0a0 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Jochen Sprickerhof <jspricke@debian.org> | ||
| 3 | Date: Mon, 8 Aug 2022 21:10:13 +0200 | ||
| 4 | Subject: [PATCH] Add missing header for LIBAVCODEC_VERSION_INT | ||
| 5 | |||
| 6 | Upstream-Status: Backport [https://github.com/opencv/opencv/pull/22357] | ||
| 7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
| 8 | --- | ||
| 9 | modules/videoio/src/ffmpeg_codecs.hpp | 1 + | ||
| 10 | 1 file changed, 1 insertion(+) | ||
| 11 | |||
| 12 | diff --git a/modules/videoio/src/ffmpeg_codecs.hpp b/modules/videoio/src/ffmpeg_codecs.hpp | ||
| 13 | index 61788e0345..faad2596ed 100644 | ||
| 14 | --- a/modules/videoio/src/ffmpeg_codecs.hpp | ||
| 15 | +++ b/modules/videoio/src/ffmpeg_codecs.hpp | ||
| 16 | @@ -60,6 +60,7 @@ extern "C" { | ||
| 17 | #include <errno.h> | ||
| 18 | #endif | ||
| 19 | |||
| 20 | +#include <libavcodec/version.h> | ||
| 21 | #include <libavformat/avformat.h> | ||
| 22 | |||
| 23 | #ifdef __cplusplus | ||
| 24 | -- | ||
| 25 | 2.38.1 | ||
| 26 | |||
diff --git a/meta-oe/recipes-support/opencv/opencv_4.6.0.bb b/meta-oe/recipes-support/opencv/opencv_4.6.0.bb index 4403af1952..a90baddc26 100644 --- a/meta-oe/recipes-support/opencv/opencv_4.6.0.bb +++ b/meta-oe/recipes-support/opencv/opencv_4.6.0.bb | |||
| @@ -51,6 +51,7 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv;branch=master;protocol | |||
| 51 | file://0001-Dont-use-isystem.patch \ | 51 | file://0001-Dont-use-isystem.patch \ |
| 52 | file://download.patch \ | 52 | file://download.patch \ |
| 53 | file://0001-Make-ts-module-external.patch \ | 53 | file://0001-Make-ts-module-external.patch \ |
| 54 | file://0001-Add-missing-header-for-LIBAVCODEC_VERSION_INT.patch \ | ||
| 54 | " | 55 | " |
| 55 | SRC_URI:append:riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=contrib" | 56 | SRC_URI:append:riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=contrib" |
| 56 | 57 | ||
