Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359699 - media-video/ffmpeg: drop VIDEO_CARDS=nvidia checking for USE=vdpau
Summary: media-video/ffmpeg: drop VIDEO_CARDS=nvidia checking for USE=vdpau
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL: http://www.freedesktop.org/wiki/Softw...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-21 06:14 UTC by Steve Arnold
Modified: 2011-12-03 15:31 UTC (History)
1 user (show)

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


Attachments
Build log (media-tv:xbmc-10.1:20110321-054059.log,29.16 KB, text/plain)
2011-03-21 06:14 UTC, Steve Arnold
Details
config.log (config.log,152.70 KB, text/plain)
2011-03-24 00:10 UTC, Steve Arnold
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Arnold archtester gentoo-dev 2011-03-21 06:14:15 UTC
Created attachment 266679 [details]
Build log

This happens after ffmpeg is built with use=vdpau:

...
checking for libswscale/swscale.h... yes
checking libswscale/rgb2rgb.h usability... no
checking libswscale/rgb2rgb.h presence... no
checking for libswscale/rgb2rgb.h... no
checking ffmpeg/rgb2rgb.h usability... no
checking ffmpeg/rgb2rgb.h presence... no
checking for ffmpeg/rgb2rgb.h... no
configure: == Use of external ffmpeg enabled. ==
checking for ff_vdpau_vc1_decode_picture in -lavcodec... no
configure: error: == External ffmpeg doesn't support VDPAU. VDPAU support disabled. ==

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-tv/xbmc-10.1/work/xbmc-10.1/config.log
 * ERROR: media-tv/xbmc-10.1 failed (configure phase):
 *   econf failed
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_configure
 *   environment, line 5390:  Called econf '--docdir=/usr/share/doc/xbmc-10.1' '--disable-ccache' '--disable-optimizations' '--enable-external-libraries' '--disable-external-python' '--enable-goom' '--enable-gl' '--disable-liba52' '--disable-libdts' '--enable-avahi' '--enable-dvdcss' '--disable-debug' '--disable-hal' '--disable-joystick' '--enable-mid' '--disable-profiling' '--enable-pulse' '--enable-rtmp' '--enable-vaapi' '--enable-vdpau' '--disable-webserver' '--enable-xrandr'
 *     ebuild.sh, line  557:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 

# emerge -pqv =media-tv/xbmc-10.1
[ebuild  N    ] media-tv/xbmc-10.1  USE="alsa avahi css midi pulseaudio rtmp sse sse2 udev vaapi vdpau xrandr (-altivec) -debug -joystick -profile -webserver"
Comment 1 SpanKY gentoo-dev 2011-03-21 13:16:57 UTC
where's the config.log ?  and `emerge --info` ?
Comment 2 Steve Arnold archtester gentoo-dev 2011-03-23 23:28:31 UTC
Portage 2.1.9.44 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.12.2-r0, 2.6.37.2-rt x86_64)
=================================================================
System uname: Linux-2.6.37.2-rt-x86_64-AMD_Athlon-tm-_II_X4_640_Processor-with-gentoo-2.0.2
Timestamp of tree: Tue, 22 Mar 2011 09:45:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [enabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.2_p8
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/ccache:     2.4-r9
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       3.4.6-r2, 4.4.4-r2, 4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA @GPL-COMPATIBLE @OSI-APPROVED @EULA dlj-1.1 skype-eula googleearth AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"    
CFLAGS="-march=athlon64 -O2 -pipe -floop-interchange -floop-strip-mine -floop-block"
CHOST="x86_64-pc-linux-gnu"     
CONFIG_PROTECT="/etc /usr/share/bufrtables /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=athlon64 -O2 -pipe -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs buildpkg ccache distcc distlocks fixlafiles fixpackages multilib-strict news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox"                     
FFLAGS=""                       
GENTOO_MIRRORS="http://XXXXXXXX/gentoo/"
LANG="C"                        
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en es de it"           
MAKEOPTS="-j9"                  
PKGDIR="/usr/portage/packages"  
PORTAGE_CONFIGROOT="/"          
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"       
PORTDIR="/usr/portage"          
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://XXXXXXXX/gentoo-portage"
USE="3dnow 7zip X Xaw3d a52 aac aalib abiword accessibility acl acpi ada alsa amd64 amrnb ansi ao artworkextra aspell avahi avi bitmap-fonts bluetooth bonobo browserplugin bzip2 cairo caps cddb cdparanoia cdr clamav cli cracklib crypt css cups curl cxx daap dbus dga directfb divx4linux djvu dri drm dts dv dvd dvdr dvdread dynagraph emacs emf enchant encode evo exif faac faad fam fame fbcon ffmpeg fftw firefox3 fits flac fluidsynth fontconfig fortran freetype freetype2 gb gd gdbm geos gif gimp glib gmp gnome gnome-keyring gnutls gphoto2 gpm gps graphite graphviz grass gs gstreamer gtk gtkhtml gtkspell guile howl iconv icq id3 id3tag ieee1394 ifp imagemagick imap imlib inotify ipod ipv6 jabber jack jasper java jbig jikes jpeg jpeg2k jpg junit ladspa lame lapack lash latex lcms ldap libnotify libsamplerate lirc lm_sensors logrotate lzma mad midi mmx modules motif mp3 mp4 mpeg mplayer mtp mudflap multilib mysql mythtv nas nautilus ncurses netcdf nfs nls nolvmstatic normalize nptlonly nsplugin nss numeric objc ogdi ogg oggvorbis opengl openmp oss pam pcre pda pdf perl phonon pkcs11 plotutils png policykit postgres pppd pulseaudio python qt3support qt4 quicktime readline replaygain rtc ruby samba sasl sdl seamonkey session slp smartcard sndfile snmp sox spamassassin speex spell sse sse2 ssl subtitles svg sysfs taglib tcl tcpd theora threads tiff timidity tk truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vcd vorbis wav wavpack webkit wifi xanim xattr xcb xext xine xml xmp xorg xpm xulrunner xv xvid xvmc zeo zip zlib zvbi" ALSA_CARDS="emu10k1 hda-intel usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_digest auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="directory canon casio fuji kodak polaroid ptp2 samsung spca50x" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse joystick evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en es de it" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="arm i386 mipsel ppc ppc64 x86_64" QEMU_USER_TARGETS="arm i386 mipsel ppc ppc64 x86_64" RUBY_TARGETS="ruby18" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="fbdev radeon vesa v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Steve Arnold archtester gentoo-dev 2011-03-24 00:10:58 UTC
Created attachment 267033 [details]
config.log

Sorry, wrong log file...
Comment 4 Steve Arnold archtester gentoo-dev 2011-03-24 01:51:28 UTC
Looks like this file is not getting installed, but is needed by the VDPAU stuff:

http://ffmpeg.org/doxygen/0.6/rgb2rgb_8h.html

I can't find it on my system, but it's in the upstream docs...
Comment 5 SpanKY gentoo-dev 2011-04-06 22:19:35 UTC
that isnt the problem.  this is:
conftest.c:(.text+0x7): undefined reference to `ff_vdpau_vc1_decode_picture'
checking for ff_vdpau_vc1_decode_picture in -lavcodec... no

ffmpeg-0.6+ provides that function when built with USE=vdpau.  verify your ffmpeg is building with that func enabled.
Comment 6 Manb 2011-04-08 19:35:40 UTC
I was also getting this and I noticed that I didn't have nvidia specified in my make.conf as my VIDEO_CARD.  After specifying it, I then re-emerged ffmpeg and subsequently xbmc 10.1.

Good luck.

-Manb
Comment 7 SpanKY gentoo-dev 2011-04-09 17:10:59 UTC
now that we have a dedicated x11-libs/libvdpau, we dont need the VIDEO_CARDS=nvidia checking in the ffmpeg package
Comment 8 Steve Arnold archtester gentoo-dev 2011-04-10 16:20:22 UTC
It's picking up the newer media-video/ffmpeg-0.6.90_rc0 now, but AFAICT it built correctly before (ie, with both VDPAU and VAAPI enabled) but I did not actually grep the libs for any symbols.

The new ffmpeg above installed both the headers for the above USE flags, and xbmc-10.1 still barfs with:

configure: == Use of external ffmpeg enabled. ==
checking for ff_vdpau_vc1_decode_picture in -lavcodec... no
configure: error: == External ffmpeg doesn't support VDPAU. VDPAU support disabled. ==

Yet ffmpeg pulls in x11-libs/libvdpau and builds against it, then installs these:

/usr/include/libavcodec/[vdpau.h,vaapi.h]

but doesn't appear to be linking against /usr/lib64/libvdpau.so.1.0.0:

$ ldd -r /usr/lib64/libavcodec.so.52.117.0 
        linux-vdso.so.1 =>  (0x00007fffc57ff000)
        libavutil.so.50 => /usr/lib64/libavutil.so.50 (0x00007f15927f1000)
        libva-0.32.0.2.so.1 => /usr/lib64/libva-0.32.0.2.so.1 (0x00007f15925c1000)
        libxvidcore.so.4 => /usr/lib64/libxvidcore.so.4 (0x00007f15922a5000)
        libx264.so.114 => /usr/lib64/libx264.so.114 (0x00007f1591ffa000)
        libvorbisenc.so.2 => /usr/lib64/libvorbisenc.so.2 (0x00007f1591b2b000)
        libvorbis.so.0 => /usr/lib64/libvorbis.so.0 (0x00007f15918fe000)
        libtheoraenc.so.1 => /usr/lib64/libtheoraenc.so.1 (0x00007f15916d1000)
        libtheoradec.so.1 => /usr/lib64/libtheoradec.so.1 (0x00007f15914c1000)
        libspeex.so.1 => /usr/lib64/libspeex.so.1 (0x00007f15912a7000)
        libopenjpeg.so.1.4 => /usr/lib64/libopenjpeg.so.1.4 (0x00007f1591087000)
        libmp3lame.so.0 => /usr/lib64/libmp3lame.so.0 (0x00007f1590e0c000)
        libfaac.so.0 => /usr/lib64/libfaac.so.0 (0x00007f1590bf8000)
        libm.so.6 => /lib64/libm.so.6 (0x00007f1590977000)
        libz.so.1 => /lib64/libz.so.1 (0x00007f1590760000)
        libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f1590542000)
        libc.so.6 => /lib64/libc.so.6 (0x00007f15901da000)
        libdl.so.2 => /lib64/libdl.so.2 (0x00007f158ffd6000)
        libogg.so.0 => /usr/lib64/libogg.so.0 (0x00007f158fdce000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f15936e2000)

So something is goofy in ffmpeg-land...
Comment 9 Alexis Ballier gentoo-dev 2011-04-12 20:57:58 UTC
(In reply to comment #7)
> now that we have a dedicated x11-libs/libvdpau, we dont need the
> VIDEO_CARDS=nvidia checking in the ffmpeg package

but the useflag isnt correctly masked...

  DEPEND.bad                    35
   media-video/ffmpeg/ffmpeg-0.6.90_rc0-r1.ebuild: ~alpha(default/linux/alpha/10.0/server) ['x11-libs/libvdpau']
   media-video/ffmpeg/ffmpeg-0.6.90_rc0-r1.ebuild: ~alpha(default/linux/alpha/10.0/developer) ['x11-libs/libvdpau']


and so on....
Comment 10 SpanKY gentoo-dev 2011-04-12 22:20:43 UTC
so properly mask it.  hiding it behind random other flags is a hack.
Comment 11 Alexis Ballier gentoo-dev 2011-12-03 15:31:13 UTC
(In reply to comment #10)
> so properly mask it.  hiding it behind random other flags is a hack.

done in 0.8