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
+ 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. +