Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 672840

Summary: media-libs/opencv-2.4.13-r3 USE=ffmpeg - .../work/opencv-2.4.13/modules/highgui/src/cap_ffmpeg_impl.hpp:1482:21: error: ‘CODEC_FLAG_GLOBAL_HEADER’ was not declared in this scope
Product: Gentoo Linux Reporter: PusRob <rpuskas>
Component: Current packagesAssignee: Amy Liffey <amynka>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo_bugs.nu_q5v, randy-andy-
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info output
emerge -pqv output
environment

Description PusRob 2018-12-09 20:02:36 UTC
Created attachment 557470 [details]
build.log

I tried to build opencv-2.4.13-r3 with the ffmpeg USE flag turned on, and got a compile error. The cause seems to be the usage of outdated names in the source, which means it would be high time for a version bump, especially considering that  OpenCV-2.x can now be regarded as ancient due to 4.0 being released recently. Please upgrade the version in the stable branch to make it usable again. Thanks.
Comment 1 PusRob 2018-12-09 20:03:33 UTC
Created attachment 557472 [details]
emerge --info output
Comment 2 PusRob 2018-12-09 20:04:42 UTC
Created attachment 557474 [details]
emerge -pqv output
Comment 3 PusRob 2018-12-09 20:07:30 UTC
Created attachment 557476 [details]
environment
Comment 4 J.Borme 2019-02-24 18:22:43 UTC
See bug #654172, similar issue with gegl due to the use of old macro CODEC_FLAG_GLOBAL_HEADER not present in recent versions of ffmpeg. You could try to emerge more recent version of opencv.
Comment 5 Larry the Git Cow gentoo-dev 2020-10-16 21:47:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5c21b91ad2464439514aae406a0c0d5f310aca1d

commit 5c21b91ad2464439514aae406a0c0d5f310aca1d
Author:     Ross Charles Campbell <rossbridger.cc@gmail.com>
AuthorDate: 2020-10-14 02:17:02 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2020-10-16 21:47:50 +0000

    media-libs/opencv: version bump to 4.5.0
    
    Bug: https://bugs.gentoo.org/701790
    Bug: https://bugs.gentoo.org/700176
    Bug: https://bugs.gentoo.org/717812
    Bug: https://bugs.gentoo.org/703658
    Bug: https://bugs.gentoo.org/689838
    Closes: https://bugs.gentoo.org/666716
    Closes: https://bugs.gentoo.org/747163
    Closes: https://bugs.gentoo.org/729190
    Closes: https://bugs.gentoo.org/699730
    Closes: https://bugs.gentoo.org/672840
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    
    Signed-off-by: Ross Charles Campbell <rossbridger.cc@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/17899
    Signed-off-by: Sam James <sam@gentoo.org>

 media-libs/opencv/Manifest            |   2 +
 media-libs/opencv/opencv-4.5.0.ebuild | 555 ++++++++++++++++++++++++++++++++++
 2 files changed, 557 insertions(+)