Opened 6 years ago

Closed 3 years ago

#55523 closed defect (worksforme)

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

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

Description (last modified by ryandesign (Ryan Carsten 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 "Pete" Dyballa) 6 years ago.

Download all attachments as: .zip

Change History (10)

Changed 6 years ago by ballapete (Peter "Pete" Dyballa)

Attachment: main.log added

comment:1 Changed 6 years ago by ryandesign (Ryan Carsten 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 6 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

Is this still a problem with opencv @3.3.1?

comment:3 Changed 6 years ago by ryandesign (Ryan Carsten 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 6 years ago by ryandesign (Ryan Carsten Schmidt)

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

comment:5 in reply to:  2 Changed 6 years ago by ballapete (Peter "Pete" 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.

comment:6 Changed 3 years ago by mascguy (Christopher Nielsen)

Is this still an issue?

comment:7 in reply to:  6 ; Changed 3 years ago by ballapete (Peter "Pete" Dyballa)

Replying to mascguy:

Is this still an issue?

I cannot tell – I have no need for OpenCV and FFmpeg is updated to version @4.3.1. I think this ticket can be closed.

comment:8 in reply to:  7 Changed 3 years ago by mascguy (Christopher Nielsen)

Replying to ballapete:

I cannot tell – I have no need for OpenCV and FFmpeg is updated to version @4.3.1. I think this ticket can be closed.

Sounds good. Can someone close this?

comment:9 Changed 3 years ago by raimue (Rainer Müller)

Resolution: worksforme
Status: assignedclosed
Note: See TracTickets for help on using tickets.