Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 761975 - media-libs/mlt-6.22.1-r100 [opencv] with opencv-4.5.1: filter_opencv_tracker.cpp:148:24: error: ‘cv::TrackerMOSSE’ has not been declared
Summary: media-libs/mlt-6.22.1-r100 [opencv] with opencv-4.5.1: filter_opencv_tracker....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: UPSTREAM
: 766537 (view as bug list)
Depends on:
Blocks:
 
Reported: 2020-12-27 19:38 UTC by Kobboi
Modified: 2021-04-11 10:43 UTC (History)
11 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,231.61 KB, text/plain)
2020-12-27 19:43 UTC, Kobboi
Details
opencv-4_5-fix.patch (opencv-4_5-fix.patch,2.33 KB, patch)
2021-04-02 15:35 UTC, PhobosK
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2020-12-27 19:38:12 UTC
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
Comment 1 Kobboi 2020-12-27 19:43:48 UTC
Created attachment 679889 [details]
build.log
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-12-27 20:52:20 UTC
6.24.0 (https://github.com/mltframework/mlt/releases/tag/v6.24.0) mentions:
>Fixed compiling with OpenCV 4.
Comment 3 Kobboi 2020-12-27 20:58:45 UTC
It does, but I never had any problem compiling with opencv-4.5.0 (and re-checked just now)
Comment 4 Larry the Git Cow gentoo-dev 2020-12-28 15:03:42 UTC
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(+)
Comment 5 Andreas Sturmlechner gentoo-dev 2020-12-28 15:07:06 UTC
No change for me.
Comment 6 Alex 2020-12-28 16:20:20 UTC
same here: the new version fails to compile
Comment 7 younky.yang 2021-01-02 11:36:58 UTC
https://github.com/mltframework/mlt/issues/636
It is reported to upstream.
Comment 8 Dennis Schridde 2021-01-11 07:52:04 UTC
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
Comment 9 Andreas Sturmlechner gentoo-dev 2021-01-22 12:09:00 UTC
*** Bug 766537 has been marked as a duplicate of this bug. ***
Comment 10 Larry the Git Cow gentoo-dev 2021-01-23 17:12:05 UTC
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(-)
Comment 11 PhobosK 2021-04-02 15:35:39 UTC
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.
Comment 12 Larry the Git Cow gentoo-dev 2021-04-11 10:43:37 UTC
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(+)