/var/tmp/portage/media-libs/opencv-3.1.0-r6/work/opencv_contrib-75b3ea9f72fdb083140fc63855b7677d67748376/modules/optflow/src/dis_flow.cpp:54:1: error: expected class-name before ‘{’ token { ^ /var/tmp/portage/media-libs/opencv-3.1.0-r6/work/opencv_contrib-75b3ea9f72fdb083140fc63855b7677d67748376/modules/optflow/src/dis_flow.cpp:472:5: error: ‘DISOpticalFlow’ was not declared in this scope Ptr<DISOpticalFlow> createOptFlow_DIS() { return makePtr<DISOpticalFlowImpl>(); } ^ /var/tmp/portage/media-libs/opencv-3.1.0-r6/work/opencv_contrib-75b3ea9f72fdb083140fc63855b7677d67748376/modules/optflow/src/dis_flow.cpp:472:19: error: template argument 1 is invalid Ptr<DISOpticalFlow> createOptFlow_DIS() { return makePtr<DISOpticalFlowImpl>(); } ^ /var/tmp/portage/media-libs/opencv-3.1.0-r6/work/opencv_contrib-75b3ea9f72fdb083140fc63855b7677d67748376/modules/optflow/src/dis_flow.cpp: In function ‘int cv::optflow::createOptFlow_DIS()’: /var/tmp/portage/media-libs/opencv-3.1.0-r6/work/opencv_contrib-75b3ea9f72fdb083140fc63855b7677d67748376/modules/optflow/src/dis_flow.cpp:472:21: warning: no previous declaration for ‘int cv::optflow::createOptFlow_DIS()’ [-Wmissing-declarations] Ptr<DISOpticalFlow> createOptFlow_DIS() { return makePtr<DISOpticalFlowImpl>(); } ^ /var/tmp/portage/media-libs/opencv-3.1.0-r6/work/opencv_contrib-75b3ea9f72fdb083140fc63855b7677d67748376/modules/optflow/src/dis_flow.cpp:472:77: error: invalid user-defined conversion from ‘cv::Ptr<cv::optflow::DISOpticalFlowImpl>’ to ‘int’ [-fpermissive] Ptr<DISOpticalFlow> createOptFlow_DIS() { return makePtr<DISOpticalFlowImpl>(); } ^
Created attachment 454200 [details] build.log (xz-compressed)
Created attachment 454202 [details] emerge --info opencv
Seems there was lot of bugs in this module I will try to update contrib to more recent version.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=87c7f56621506120ca81cb7098b836d922280d7d commit 87c7f56621506120ca81cb7098b836d922280d7d Author: Amy Liffey <amynka@gentoo.org> AuthorDate: 2018-05-25 19:33:22 +0000 Commit: Amy Liffey <amynka@gentoo.org> CommitDate: 2018-05-25 19:33:22 +0000 media-libs/opencv: drop old 3.1.0 Closes: https://bugs.gentoo.org/557328 Closes: https://bugs.gentoo.org/600658 Closes: https://bugs.gentoo.org/607830 Closes: https://bugs.gentoo.org/611964 Closes: https://bugs.gentoo.org/639896 Package-Manager: Portage-2.3.24, Repoman-2.3.6 media-libs/opencv/Manifest | 2 - media-libs/opencv/opencv-3.1.0-r8.ebuild | 328 ------------------------------- 2 files changed, 330 deletions(-)