opencv-2.4.4a (git) fails to build highgui cap_ffmpeg_impl.hpp (Bug #2916)


Added by David Favor almost 12 years ago. Updated almost 12 years ago.


Status:Done Start date:2013-03-25
Priority:Normal Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:build/install
Target version:2.4.5
Affected version:branch '2.4' Operating System:
Difficulty: HW Platform:
Pull request:https://github.com/Itseez/opencv/pull/756

Description

Using latest git of ffmpeg + opencv (as of this morning).

Build log attached.


cmake.build.log (181.7 kB) David Favor, 2013-03-25 05:01 pm


History

Updated by David Favor almost 12 years ago

Still broken with today's git 2.4.4-811-g20534c9

Updated by David Favor almost 12 years ago

Maybe I'm posting to the wrong place for a response.

If there's a better place to get this question answered, please update this ticket.

Thanks.

Updated by David Favor almost 12 years ago

Tried various fixes. No progress. Still same error.

In file included from /smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1029:10: error: use of enum ‘CodecID’ without previous declaration
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1029:52: error: invalid type in declaration before ‘;’ token
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1081:46: error: ‘CodecID’ has not been declared
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: In function ‘AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*, int, int, int, int, double, int)’:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1114:23: error: invalid conversion from ‘int’ to ‘AVCodecID’ [-fpermissive]
In file included from /smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg.cpp:45:0:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, bool)’:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1480:5: error: ‘CodecID’ was not declared in this scope
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1480:13: error: expected ‘;’ before ‘codec_id’
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1525:10: error: ‘codec_id’ was not declared in this scope
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1545:13: error: ‘codec_id’ was not declared in this scope
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1574:48: error: ‘codec_id’ was not declared in this scope
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: At global scope:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1791:58: error: ‘CodecID’ has not been declared
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1838:73: error: ‘CodecID’ has not been declared
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: In static member function ‘static AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext*, int, int, int, int, double, AVPixelFormat)’:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1854:19: error: invalid conversion from ‘int’ to ‘AVCodecID’ [-fpermissive]
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool OutputMediaStream_FFMPEG::open(const char*, int, int, double)’:
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1958:5: error: ‘CodecID’ was not declared in this scope
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1958:13: error: expected ‘;’ before ‘codec_id’
/smartbuild/work/opencv.git/modules/highgui/src/cap_ffmpeg_impl.hpp:1980:37: error: ‘codec_id’ was not declared in this scope
make2: * [modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] Error 1
make2: Leaving directory `/smartbuild/work/opencv.git/release'
make1:
[modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make1: Leaving directory `/smartbuild/work/opencv.git/release'
make: *
* [all] Error 2

Updated by David Favor almost 12 years ago

Still broken as of today's 2.4.4-868-gf77a375

Updated by David Favor almost 12 years ago

Broken for dpkg-buildpackage -rfakeroot -b to rebuild Ubuntu + Debian source for opencv-2.3.1
so this points to the already open ffmpeg header file change bug.

Updated by David Favor almost 12 years ago

Appears to maybe be a duplicate of the https://github.com/Itseez/opencv/pull/685 bug.

Updated by Vladislav Vinogradov almost 12 years ago

  • Pull request set to https://github.com/Itseez/opencv/pull/756

Updated by Andrey Kamaev almost 12 years ago

Fix is pushed to 2.4

  • Target version set to 2.4.5
  • Status changed from Open to Done

Updated by David Favor almost 12 years ago

Andrey Kamaev wrote:

Fix is pushed to 2.4

Thanks!

Updated by David Favor almost 12 years ago

Fixed as of git-2.4.5-837-gf4ae0cf

Also available in: Atom PDF