Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 672840 - 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
Summary: media-libs/opencv-2.4.13-r3 USE=ffmpeg - .../work/opencv-2.4.13/modules/highg...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Amy Liffey
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-09 20:02 UTC by PusRob
Modified: 2020-10-16 21:47 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,258.75 KB, text/plain)
2018-12-09 20:02 UTC, PusRob
Details
emerge --info output (eminfo,6.78 KB, text/plain)
2018-12-09 20:03 UTC, PusRob
Details
emerge -pqv output (empqv,257 bytes, text/plain)
2018-12-09 20:04 UTC, PusRob
Details
environment (environment,223.32 KB, text/plain)
2018-12-09 20:07 UTC, PusRob
Details

Note You need to log in before you can comment on or make changes to this bug.
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(+)