Opened 11 years ago

Closed 11 years ago

#40024 closed defect (fixed)

bob: build fails using ffmpeg-devel

Reported by: dbevans (David B. Evans) Owned by: andre.anjos@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: laurent.el-shafey@…
Port: bob

Description

When building bob 1.2.0 with ffmpeg-devel (effectively ffmpeg 2.0) as the active dependency, the build fails with the following error:

[ 23%] Building CXX object src/core/python/CMakeFiles/bob_core_py27.dir/typeinfo.cc.o
/opt/local/var/macports/build/_opt_macports_trunk_dports_science_bob/bob/work/bob-1.2.0/src/io/cxx/VideoUtilities.cc:49:9: error: unknown type name 'CodecID'; did you mean 'AVCodecID'?
typedef CodecID AVCodecID;
        ^~~~~~~
        AVCodecID
/opt/local/include/libavcodec/avcodec.h:100:6: note: 'AVCodecID' declared here
enum AVCodecID {
     ^
1 error generated.
make[2]: *** [src/io/cxx/CMakeFiles/bob_io.dir/VideoUtilities.cc.o] Error 1

A number of deprecated API usages that are allowed in ffmpeg 1.2.2 are removed in ffmpeg 2.0.

Attachments (3)

main-ffmpeg-2.0.log (181.6 KB) - added by dbevans (David B. Evans) 11 years ago.
Build log showing failure
Portfile.diff (726 bytes) - added by andre.dos.anjos@… 11 years ago.
patch-src-io-cxx-VideoUtilities.diff (796 bytes) - added by andre.dos.anjos@… 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 11 years ago by dbevans (David B. Evans)

Attachment: main-ffmpeg-2.0.log added

Build log showing failure

comment:1 Changed 11 years ago by andre.dos.anjos@…

Thanks for the report, Dave. Please, use the following patches for the Portfile and to bob to build an ffmpeg-2.0 compliant version. As usual, the patch has already been applied and tested upstream. André

Changed 11 years ago by andre.dos.anjos@…

Attachment: Portfile.diff added

Changed 11 years ago by andre.dos.anjos@…

comment:2 Changed 11 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

Committed in r109056. Thanks, André.

Note: See TracTickets for help on using tickets.