Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 229405 - media-libs/opencv-1.0.0-r1 should depend on ffmpeg>=0.4.9_p20070616-r1
Summary: media-libs/opencv-1.0.0-r1 should depend on ffmpeg>=0.4.9_p20070616-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Josh Glover (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-25 15:14 UTC by Flavio Cappelli
Modified: 2008-06-29 14:41 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Flavio Cappelli 2008-06-25 15:14:02 UTC
media-libs/opencv-1.0.0-r1 needs libswscale to build with the "ffmpeg" USE, which is provided by media-video/ffmpeg >= 0.4.9_p20070616-r1. The stable version of ffmpeg (0.4.9_p20070616) doesn't build libswscale (see the ffmpeg changelog).


Reproducible: Always

Steps to Reproduce:
1. emerge "=media-video/ffmpeg-0.4.9_p20070616"
2. USE="ffmpeg" emerge "=media-libs/opencv-1.0.0-r1"

---------------------------

>>> Emerging (1 of 1) media-libs/opencv-1.0.0-r1 to /
 * opencv-1.0.0.tar.gz RMD160 SHA1 SHA256 size ;-)
...
checking ffmpeg/swscale.h usability... yes
checking ffmpeg/swscale.h presence... yes
checking for ffmpeg/swscale.h... yes
checking for avcodec_decode_video in -lavcodec... yes
checking for av_open_input_file in -lavformat... yes
checking for sws_getContext in -lswscale... no
configure: error: FFmpeg requested but ffmpeg libraries not found
...
 *
 * ERROR: media-libs/opencv-1.0.0-r1 failed.

---------------------------

Upgrading ffmpeg to 0.4.9_p20070616-r1 resolve this issue, so
the opencv ebuild should depend on ffmpeg >= 0.4.9_p20070616-r1.


UNFORTUNATLY ffmpeg >= 0.4.9_p20070616-r1 breaks vlc-0.8.x (as reported on many
web sites, vlc-0.8.x doesn't work with the ffmpeg swscaler enabled). I know this
is a problem of vlc-0.8.x.


Regards

    Flavio
Comment 1 Peter Alfredsen (RETIRED) gentoo-dev 2008-06-29 14:41:29 UTC
+  29 Jun 2008; Peter Alfredsen <loki_val@gentoo.org>
+  +files/opencv-1.0.0-ffmpeg-0.4.9_p20080326.patch, opencv-1.0.0-r1.ebuild:
+  Add patch for ffmpeg-0.4.9_p20080326 compatibility. Depends for ffmpeg
+  raised to >=ffmpeg-0.4.9_p20080326. Bug #229621 and bug #229405.
+