x86_64-pc-linux-gnu-g++ -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -Wall -DPIC -DUSE_MMX -mmmx -DUSE_SSE -msse -DUSE_SSE2 -msse2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall -DPIC -DUSE_MMX -mmmx -DUSE_SSE -msse -DUSE_SSE2 -msse2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall -DPIC -DUSE_MMX -mmmx -DUSE_SSE -msse -DUSE_SSE2 -msse2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wno-deprecated -O2 -march=x86-64 -pipe -fomit-frame-pointer -g -ggdb -DARCH_X86_64 -Wall -DPIC -DUSE_MMX -mmmx -DUSE_SSE -msse -DUSE_SSE2 -msse2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pthread -DARCH_X86_64 -Wall -DPIC -DUSE_MMX -mmmx -DUSE_SSE -msse -DUSE_SSE2 -msse2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pthread -I../.. -DARCH_X86_64 -Wall -DPIC -DUSE_MMX -mmmx -DUSE_SSE -msse -DUSE_SSE2 -msse2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -fPIC -pthread -I/usr/include/opencv4 -c -o filter_opencv_tracker.o filter_opencv_tracker.cpp filter_opencv_tracker.cpp: In function ‘void analyze(mlt_filter, cv::Mat, private_data*, int, int, int, int)’: filter_opencv_tracker.cpp:148:24: error: ‘cv::TrackerMOSSE’ has not been declared 148 | data->tracker = cv::TrackerMOSSE::create(); | ^~~~~~~~~~~~ filter_opencv_tracker.cpp:157:24: error: ‘cv::TrackerTLD’ has not been declared 157 | data->tracker = cv::TrackerTLD::create(); | ^~~~~~~~~~ filter_opencv_tracker.cpp:161:24: error: ‘cv::TrackerBoosting’ has not been declared 161 | data->tracker = cv::TrackerBoosting::create(); | ^~~~~~~~~~~~~~~ filter_opencv_tracker.cpp:227:28: error: could not convert ‘data->private_data::tracker.cv::Ptr<cv::Tracker>::operator->()->cv::Tracker::init(cv::_InputArray(cvFrame), cv::Rect_<_Tp>::operator cv::Rect_<_Tp2>() const [with _Tp2 = int; _Tp = double]())’ from ‘void’ to ‘bool’ 227 | if ( data->tracker->init( cvFrame, data->boundingBox ) ) { | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | void filter_opencv_tracker.cpp:242:41: error: cannot bind non-const lvalue reference of type ‘cv::Rect&’ {aka ‘cv::Rect_<int>&’} to an rvalue of type ‘cv::Rect_<int>’ 242 | data->tracker->update( cvFrame, data->boundingBox ); | ~~~~~~^~~~~~~~~~~ In file included from /usr/include/opencv4/opencv2/core.hpp:58, from /usr/include/opencv4/opencv2/tracking.hpp:8, from filter_opencv_tracker.cpp:21: /usr/include/opencv4/opencv2/core/types.hpp:1905:1: note: after user-defined conversion: ‘cv::Rect_<_Tp>::operator cv::Rect_<_Tp2>() const [with _Tp2 = int; _Tp = double]’ 1905 | Rect_<_Tp>::operator Rect_<_Tp2>() const | ^~~~~~~~~~ In file included from /usr/include/opencv4/opencv2/tracking.hpp:9, from filter_opencv_tracker.cpp:21: /usr/include/opencv4/opencv2/video/tracking.hpp:737:48: note: initializing argument 2 of ‘virtual bool cv::Tracker::update(cv::InputArray, cv::Rect&)’ 737 | bool update(InputArray image, CV_OUT Rect& boundingBox) = 0; | ~~~~~~^~~~~~~~~~~ make[2]: *** [<builtin>: filter_opencv_tracker.o] Error 1 make[2]: Leaving directory '/var/tmp/portage/media-libs/mlt-6.22.1-r100/work/mlt-6.22.1/src/modules/opencv' make[1]: *** [Makefile:5: all] Error 1 make[1]: Leaving directory '/var/tmp/portage/media-libs/mlt-6.22.1-r100/work/mlt-6.22.1/src/modules' make: *** [Makefile:9: all] Error 1 Reproducible: Always
Created attachment 679889 [details] build.log
6.24.0 (https://github.com/mltframework/mlt/releases/tag/v6.24.0) mentions: >Fixed compiling with OpenCV 4.
It does, but I never had any problem compiling with opencv-4.5.0 (and re-checked just now)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d575b30fce0b721c2c9fb57ff99e207c320e8a96 commit d575b30fce0b721c2c9fb57ff99e207c320e8a96 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-12-28 15:02:54 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-12-28 15:03:28 +0000 media-libs/mlt: 6.24.0 version bump Bug: https://bugs.gentoo.org/761975 Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-libs/mlt/Manifest | 1 + media-libs/mlt/mlt-6.24.0.ebuild | 233 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 234 insertions(+)
No change for me.
same here: the new version fails to compile
https://github.com/mltframework/mlt/issues/636 It is reported to upstream.
Can `!=media-libs/opencv-4.5.1` be added to `DEPEND` of media-libs/mlt, please? It seems upstream will not fix this issue soon, as OpenCV itself needs a fix first: https://github.com/opencv/opencv/issues/19260
*** Bug 766537 has been marked as a duplicate of this bug. ***
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e0d7feda151f87508763b23a443450f64b53fbc commit 7e0d7feda151f87508763b23a443450f64b53fbc Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-01-23 17:11:37 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-01-23 17:11:37 +0000 media-libs/mlt: Restrict IUSE=opencv to <media-libs/opencv-4.5.1 Closes: https://bugs.gentoo.org/761975 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-libs/mlt/mlt-6.24.0-r1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Created attachment 696969 [details, diff] opencv-4_5-fix.patch Limiting the media-libs/opencv-4.5.1 version is a temporary solution. Now upstream has fixed this problem, so no need to limit opencv. As mentioned above - the upstream bug report: https://github.com/mltframework/mlt/issues/636 The actual patch: https://github.com/mltframework/mlt/pull/692/commits/2acc4ffc7086495d08e933162b06ef29dbcf771e And I am uploading the actual patch.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42e3ac42b39dec8f134fe138c25db4efa581bdfd commit 42e3ac42b39dec8f134fe138c25db4efa581bdfd Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2021-04-11 09:36:03 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2021-04-11 10:43:20 +0000 media-libs/mlt: 6.26.0 version bump Bug: https://bugs.gentoo.org/761975 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> media-libs/mlt/Manifest | 1 + media-libs/mlt/mlt-6.26.0.ebuild | 231 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 232 insertions(+)