mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 22:35:25 +01:00
opencv: update 4.5.2 -> 4.5.5
Drop backports. Disable ffmpeg, as opencv is not yet compatible with ffmpeg 5.0. Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
4a4abee38a
commit
ea427dceaa
|
|
@ -1,41 +0,0 @@
|
|||
From 9cfa84313c5833d7295fcf57be93d5d2aaadfd88 Mon Sep 17 00:00:00 2001
|
||||
From: Vincent Rabaud <vrabaud@google.com>
|
||||
Date: Sat, 10 Jul 2021 00:21:52 +0200
|
||||
Subject: [PATCH] Use the one argument version of SetTotalBytesLimit.
|
||||
|
||||
The two argument versions has been deprecated, cf
|
||||
https://developers.google.com/protocol-buffers/docs/reference/cpp/google.protobuf.io.coded_stream
|
||||
|
||||
Upstream-Status: Backport [9cfa84313c5833d7295fcf57be93d5d2aaadfd88 - from master after 4.5.3 tag]
|
||||
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
|
||||
---
|
||||
modules/dnn/src/caffe/caffe_io.cpp | 5 +++++
|
||||
1 file changed, 5 insertions(+)
|
||||
|
||||
diff --git a/modules/dnn/src/caffe/caffe_io.cpp b/modules/dnn/src/caffe/caffe_io.cpp
|
||||
index 2fc4d84f46..ebecf95eea 100644
|
||||
--- a/modules/dnn/src/caffe/caffe_io.cpp
|
||||
+++ b/modules/dnn/src/caffe/caffe_io.cpp
|
||||
@@ -92,6 +92,7 @@
|
||||
#ifdef HAVE_PROTOBUF
|
||||
#include <google/protobuf/io/coded_stream.h>
|
||||
#include <google/protobuf/io/zero_copy_stream_impl.h>
|
||||
+#include <google/protobuf/stubs/common.h>
|
||||
#include <google/protobuf/text_format.h>
|
||||
|
||||
#include <opencv2/core.hpp>
|
||||
@@ -1111,7 +1112,11 @@ static const int kProtoReadBytesLimit = INT_MAX; // Max size of 2 GB minus 1 by
|
||||
|
||||
bool ReadProtoFromBinary(ZeroCopyInputStream* input, Message *proto) {
|
||||
CodedInputStream coded_input(input);
|
||||
+#if GOOGLE_PROTOBUF_VERSION >= 3006000
|
||||
+ coded_input.SetTotalBytesLimit(kProtoReadBytesLimit);
|
||||
+#else
|
||||
coded_input.SetTotalBytesLimit(kProtoReadBytesLimit, 536870912);
|
||||
+#endif
|
||||
|
||||
return proto->ParseFromCodedStream(&coded_input);
|
||||
}
|
||||
--
|
||||
2.32.0
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -10,7 +10,7 @@ ARM_INSTRUCTION_SET:armv5 = "arm"
|
|||
|
||||
DEPENDS = "libtool swig-native bzip2 zlib glib-2.0 libwebp"
|
||||
|
||||
SRCREV_opencv = "69357b1e88680658a07cffde7678a4d697469f03"
|
||||
SRCREV_opencv = "dad26339a975b49cfb6c7dbe4bd5276c9dcb36e2"
|
||||
SRCREV_contrib = "f5d7f6712d4ff229ba4f45cf79dfd11c557d56fd"
|
||||
SRCREV_ipp = "a56b6ac6f030c312b2dce17430eef13aed9af274"
|
||||
SRCREV_boostdesc = "34e4206aef44d50e6bbcd0ab06354b52e7466d26"
|
||||
|
|
@ -51,8 +51,6 @@ SRC_URI = "git://github.com/opencv/opencv.git;name=opencv;branch=master;protocol
|
|||
file://0001-Dont-use-isystem.patch \
|
||||
file://download.patch \
|
||||
file://0001-Make-ts-module-external.patch \
|
||||
file://0001-sfm-link-with-Glog_LIBS.patch;patchdir=../contrib \
|
||||
file://0001-Use-the-one-argument-version-of-SetTotalBytesLimit.patch \
|
||||
"
|
||||
SRC_URI:append:riscv64 = " file://0001-Use-Os-to-compile-tinyxml2.cpp.patch;patchdir=../contrib"
|
||||
|
||||
|
|
@ -105,7 +103,7 @@ EXTRA_OECMAKE:append:x86 = " -DX86=ON"
|
|||
|
||||
PACKAGECONFIG ??= "gapi python3 eigen jpeg png tiff v4l libv4l gstreamer samples tbb gphoto2 \
|
||||
${@bb.utils.contains("DISTRO_FEATURES", "x11", "gtk", "", d)} \
|
||||
${@bb.utils.contains("LICENSE_FLAGS_WHITELIST", "commercial", "libav", "", d)}"
|
||||
"
|
||||
|
||||
# TBB does not build for powerpc so disable that package config
|
||||
PACKAGECONFIG:remove:powerpc = "tbb"
|
||||
Loading…
Reference in New Issue
Block a user