graphics/opencv dependency on ffmpeg is broken by multimedia/ffmpeg upgrade

Jason E. Hale jhale at freebsd.org
Tue Oct 22 12:07:02 UTC 2013


On Tuesday, October 22, 2013 14:40:22 Andriy Gapon wrote:
> > 
> > I committed the patch along with a few other changes in r331209.  Thanks!
> 
> Thank you!
> 
> Still the build failed in my environment:
> /usr/obj/ports/usr/ports/graphics/opencv/work/OpenCV-2.3.1/modules/contrib/s
> rc/spinimages.cpp: In member function 'void
> cv::SpinImageModel::selectRandomSubset(float)':
> /usr/obj/ports/usr/ports/graphics/opencv/work/OpenCV-2.3.1/modules/contrib/
> src/spinimages.cpp:793:45: error: call of overloaded
> 'iota(std::vector<int>::iterator,
> std::vector<int>::iterator, int)' is ambiguous
>          iota(subset.begin(), subset.end(), 0);
> 
> /usr/obj/ports/usr/ports/graphics/opencv/work/OpenCV-2.3.1/modules/contrib/s
> rc/spinimages.cpp:793:45: note: candidates are:
> /usr/obj/ports/usr/ports/graphics/opencv/work/OpenCV-2.3.1/modules/contrib/s
> rc/spinimages.cpp:88:36: note: void {anonymous}::iota(FwIt, FwIt, T) [with
> FwIt =
> __gnu_cxx::__normal_iterator<int*, std::vector<int> >; T = int]
>  template<class FwIt, class T> void iota(FwIt first, FwIt last, T value) {
> while(first != last) *first++ = value++; }
> 
> /usr/local/lib/gcc48/include/c++/bits/stl_numeric.h:82:5: note: void
> std::iota(_ForwardIterator, _ForwardIterator, _Tp) [with _ForwardIterator =
> __gnu_cxx::__normal_iterator<int*, std::vector<int> >; _Tp = int]
>      iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __value)
> 
> The problem seems to be that Makefile has USE_CXXSTD=gnu++11 and C++11
> already includes std::iota: http://en.cppreference.com/w/cpp/algorithm/iota
> But spinimages.cpp defines another iota with exactly the same signature.

I am working on getting opencv updated to 2.4.6.1, and it looks that function 
has been renamed.  In the meantime, could you see if the attached patch helps 
(includes a few Makefile typo fixes)?

-- 
Jason E. Hale - jhale@
FreeBSD Ports Committer
KDE/FreeBSD Team
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opencv.diff
Type: text/x-patch
Size: 3183 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-multimedia/attachments/20131022/d08ef8f0/attachment.bin>


More information about the freebsd-multimedia mailing list