Opened 7 months ago

Last modified 7 months ago

#55523 assigned defect

opencv @3.2.0_1: Build failure with ffmpeg-devel @20171210

Reported by: ballapete (Peter Dyballa) Owned by: stromnov (Andrew Stromnov)
Priority: Normal Milestone:
Component: ports Version: 2.4.2
Keywords: snowleopard Cc: devans@…, jeremyhu@…
Port: opencv

Description (last modified by ryandesign (Ryan Schmidt))

opencv @3.2.0_1 was installed when ffmpeg-devel was upgraded to version @20171210. It changed /opt/local/lib/libavcodec.57.108.101.dylib to /opt/local/lib/libavcodec.58.6.103.dylib, so some packages need to be rebuilt:

The following ports will be rebuilt:
 opencv @3.2.0+avx2+eigen+tbb
 libquicktime-devel @1.2.4
 transcode @1.1.7+a52dec+experimental+faac+freetype+full+imagemagick+libdv+libogg+libpostproc+libquicktime+libsdl+libtheora+libvorbis+libxml2+lzo+mjpegtools+x11+x264+xvid

The rebuild of opencv @3.2.0_1 fails with:

[ 61%] Built target opencv_shape
In file included from /opt/local/var/macports/build/_Users_pete_Quellen_MacPorts_graphics_opencv/opencv/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg.cpp:47:
/opt/local/var/macports/build/_Users_pete_Quellen_MacPorts_graphics_opencv/opencv/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1541:21: error: use of undeclared identifier 'CODEC_FLAG_GLOBAL_HEADER'
        c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                    ^
/opt/local/var/macports/build/_Users_pete_Quellen_MacPorts_graphics_opencv/opencv/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1569:30: error: use of undeclared identifier 'AVFMT_RAWPICTURE'
    if (oc->oformat->flags & AVFMT_RAWPICTURE) {
                             ^
/opt/local/var/macports/build/_Users_pete_Quellen_MacPorts_graphics_opencv/opencv/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp:1743:35: error: use of undeclared identifier 'AVFMT_RAWPICTURE'
        if( (oc->oformat->flags & AVFMT_RAWPICTURE) == 0 )
                                  ^
/opt/local/var/macports/build/_Users_pete_Quellen_MacPorts_graphics_opencv/opencv/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2039:32: error: use of undeclared identifier 'AVFMT_RAWPICTURE'
    if (!(oc->oformat->flags & AVFMT_RAWPICTURE)) {
                               ^
/opt/local/var/macports/build/_Users_pete_Quellen_MacPorts_graphics_opencv/opencv/work/opencv-3.2.0/modules/videoio/src/cap_ffmpeg_impl.hpp:2338:25: error: use of undeclared identifier 'CODEC_FLAG_GLOBAL_HEADER'
            c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                        ^
5 errors generated.

Attachments (1)

main.log (401.7 KB) - added by ballapete (Peter Dyballa) 7 months ago.

Download all attachments as: .zip

Change History (6)

Changed 7 months ago by ballapete (Peter Dyballa)

Attachment: main.log added

comment:1 Changed 7 months ago by ryandesign (Ryan Schmidt)

Summary: ffmpeg-devel @20171210 forbids re-building of opencv @3.2.0_1 on Mac OS X 10.6.8, Snow Leopradffmpeg-devel @20171210 incompatible with opencv @3.2.0_1

comment:2 Changed 7 months ago by ryandesign (Ryan Schmidt)

Description: modified (diff)

Is this still a problem with opencv @3.3.1?

comment:3 Changed 7 months ago by ryandesign (Ryan Schmidt)

Port: opencv added
Summary: ffmpeg-devel @20171210 incompatible with opencv @3.2.0_1opencv @3.2.0_1: Build failure with ffmpeg-devel @20171210

comment:4 Changed 7 months ago by ryandesign (Ryan Schmidt)

Cc: stromnov@… removed
Owner: set to stromnov
Status: newassigned

comment:5 in reply to:  2 Changed 7 months ago by ballapete (Peter Dyballa)

Replying to ryandesign:

Is this still a problem with opencv @3.3.1?

Me, I cannot tell. I do not know how to upgrade and neither does port know. (Just ran a selfupdate.)

What I *can* tell is that ffmpeg-devel @20171210_0 is unusable as well. Recent opencv @3.2.0_1+avx2+eigen+tbb builds with ffmpeg-devel @20171018_0+gpl2+gpl3+nonfree+x11.

Note: See TracTickets for help on using tickets.