Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284937 - media-video/ffmpeg-0.5-r1 configure failed: ERROR: libx264 not found
Summary: media-video/ffmpeg-0.5-r1 configure failed: ERROR: libx264 not found
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-14 14:42 UTC by Jeff Huffman
Modified: 2009-09-15 07:25 UTC (History)
1 user (show)

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


Attachments
config.err by Fabian Henze (config.err,103.31 KB, text/plain)
2009-09-14 19:29 UTC, Fabian Henze
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Huffman 2009-09-14 14:42:14 UTC
media-video/ffmpeg-0.5-r1 emerge fails during configuration with the error message "ERROR: libx264 not found" though 'ls -l /usr/lib/libx264.*' gives

-rw-r--r-- 1 root root 730306 2009-09-13 22:46 /usr/lib/libx264.a
lrwxrwxrwx 1 root root     13 2009-09-13 22:46 /usr/lib/libx264.so -> libx264.so.75
-rwxr-xr-x 1 root root 583072 2009-08-22 16:36 /usr/lib/libx264.so.67
-rwxr-xr-x 1 root root 578980 2009-09-13 22:46 /usr/lib/libx264.so.75

Here's the full output from the emerge command (emerge -av1 ffmpeg)

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-video/ffmpeg-0.5-r1  USE="3dnow 3dnowext X alsa dirac encode hardcoded-tables mmx mmxext mp3 network schroedinger sdl ssse3 theora threads v4l v4l2 vdpau vorbis x264 xvid zlib (-altivec) -amr -bindist -custom-cflags -debug -doc -faac -faad -gsm -ieee1394 -ipv6 -jpeg2k -oss -speex -test -vhook" VID
EO_CARDS="nvidia" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] 

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-video/ffmpeg-0.5-r1
 * ffmpeg-0.5.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                                                                                                    [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                                                                                                     [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                                                                                                    [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking ffmpeg-0.5.tar.bz2 to /var/tmp/portage/media-video/ffmpeg-0.5-r1/work
>>> Source unpacked in /var/tmp/portage/media-video/ffmpeg-0.5-r1/work
>>> Preparing source in /var/tmp/portage/media-video/ffmpeg-0.5-r1/work/ffmpeg-0.5 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/media-video/ffmpeg-0.5-r1/work/ffmpeg-0.5 ...
true
ERROR: libx264 not found
If you think configure made a mistake, make sure you are using the latest
version from SVN.  If the latest version fails, report the problem to the
ffmpeg-user@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
 * 
 * ERROR: media-video/ffmpeg-0.5-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_configure
 *             environment, line 2631:  Called die
 * The specific snippet of code:
 *       ./configure --prefix=/usr --libdir=/usr/$(get_libdir) --shlibdir=/usr/$(get_libdir) --mandir=/usr/share/man --enable-static --enable-shared --cc="$(tc-getCC)" ${myconf} || die "configure failed"
 *  The die message:
 *   configure failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/ffmpeg-0.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-0.5-r1/temp/environment'.
 * 

>>> Failed to emerge media-video/ffmpeg-0.5-r1, Log file:

>>>  '/var/tmp/portage/media-video/ffmpeg-0.5-r1/temp/build.log'

 * Messages for package media-video/ffmpeg-0.5-r1:

 * 
 * ERROR: media-video/ffmpeg-0.5-r1 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_configure
 *             environment, line 2631:  Called die
 * The specific snippet of code:
 *       ./configure --prefix=/usr --libdir=/usr/$(get_libdir) --shlibdir=/usr/$(get_libdir) --mandir=/usr/share/man --enable-static --enable-shared --cc="$(tc-getCC)" ${myconf} || die "configure failed"
 *  The die message:
 *   configure failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/ffmpeg-0.5-r1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/ffmpeg-0.5-r1/temp/environment'.
 * 


Reproducible: Always

Steps to Reproduce:
Comment 1 Rafał Mużyło 2009-09-14 18:51:05 UTC
What's your version of media-libs/x264 and 
what's the value of X264_BUILD in /usr/include/x264.h ?

And anyway, to quote you:
Include the log file "config.err" produced by configure as this will help
solving the problem.
Comment 2 Fabian Henze 2009-09-14 19:29:38 UTC
Created attachment 204121 [details]
config.err by Fabian Henze

I can confirm this bug and will answer your questions (note that I am not the author of this bug report)
-- Versions:
  media-video/ffmpeg-0.5-r1
  media-libs/x264-0.0.20090908

-- grep -r X264_BUILD /usr/include/
  /usr/include/x264.h:#define X264_BUILD 75

-- emerge --info
 ...


Portage 2.2_rc40 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.31-rc9 x86_64)
=================================================================                                  
System uname: Linux-2.6.31-rc9-x86_64-Pentium-R-_Dual-Core_CPU_E6300_@_2.80GHz-with-gentoo-2.0.1   
Timestamp of tree: Mon, 14 Sep 2009 14:00:01 +0000                                                 
app-shells/bash:     4.0_p28                                                                       
dev-java/java-config: 2.1.8-r1                                                                     
dev-lang/python:     2.6.2-r1                                                                      
dev-python/pycrypto: 2.0.1-r8                                                                      
dev-util/cmake:      2.6.4                                                                         
sys-apps/baselayout: 2.0.1                                                                         
sys-apps/openrc:     0.4.3-r3                                                                      
sys-apps/sandbox:    1.6-r2                                                                        
sys-devel/autoconf:  2.13, 2.63-r1                                                                 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                          
sys-devel/binutils:  2.18-r3                                                                       
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   1.5.26                                                                        
virtual/os-headers:  2.6.30-r1                                                                     
ACCEPT_KEYWORDS="amd64"                                                                            
CBUILD="x86_64-pc-linux-gnu"                                                                       
CFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096"                                                                                      
CHOST="x86_64-pc-linux-gnu"                                                                                          
CONFIG_PROTECT="/etc /usr/share/config"                                                                              
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"                                                                                          
CXXFLAGS="-O2 -march=core2 -pipe -fomit-frame-pointer -mcx16 -msahf --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096"                                                                                    
DISTDIR="/home/portage/distfiles"                                                                                    
FEATURES="assume-digests distlocks fixpackages noinfo preserve-libs protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="ftp://192.168.1.2 ftp://de-mirror.org/distro/gentoo"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1,--as-needed"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/home/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/ownoverlay"
SYNC="rsync://192.168.1.2/gentoo-portage"
USE="X a52 aac acpi alsa amd64 amr amrnb amrwb ass berkdb branding bzip2 cairo cdaudio cdda cddax cdparanoia cdr cgi chm cli cracklib crypt cups dbus divx djvu dri dts dv dvd dvdr dvdread ebook encode exif faac fam ffmpeg firefox flac foomaticdb fortran ftp gdbm geoip gif glibc-omitfp glx gnutls gzip hal iconv icq ieee1394 inotify iproute2 ipv6 isdnlog jabber java javascript jpeg jpeg2k kate kde lame lcms libass live lzma lzo mad matroska mjpeg mmx mng mp2 mp3 mp4 mpeg mpeg2 mudflap multilib musepack musicbrainz ncurses nepomuk networkmanager nls nptl nptlonly nut nvidia ogg opengl openmp oscar otr pcre pdf perl php plasma png pnm ppds pppd python qt3support qt4 quicktime rar raw readline realmedia reflection rtsp samba sasl scanner schroedinger sdl semantic-desktop session shout smp speex spell spl sse sse2 ssl ssse3 stream svg sysfs tcpd theora threads tiff truetype twolame unicode usb vcd vdpau vnc vorbis wav wavpack wifi wmf wmp x264 xcb xcomposite xinerama xml xmpp xorg xpm xulrunner xv xvid yv12 zip zlib" ALSA_CARDS="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_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 rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" SANE_BACKENDS="net plustek" USERLAND="GNU" VIDEO_CARDS="intel vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-09-14 19:50:58 UTC
The ebuild should have pulled x264 in as you have enabled USE x264.
Please provide the output of 
emerge -vp media-libs/x264 media-video/ffmpeg
Comment 4 Fabian Henze 2009-09-14 20:17:22 UTC
(In reply to comment #3)
> The ebuild should have pulled x264 in as you have enabled USE x264.
> Please provide the output of 
> emerge -vp media-libs/x264 media-video/ffmpeg
> 

It has.

# emerge -vp media-libs/x264 media-video/ffmpeg

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] media-libs/x264-0.0.20090908  USE="threads -debug" 0 kB
[ebuild   R   ] media-video/ffmpeg-0.5-r1  USE="3dnowext X alsa amr encode faac hardcoded-tables ieee1394 ipv6 jpeg2k mmx mmxext mp3 schroedinger sdl speex ssse3 theora threads vdpau vorbis x264 xvid zlib -3dnow (-altivec) -bindist -custom-cflags -debug -dirac -doc -faad -gsm -network -oss -test -v4l -v4l2 -vhook" VIDEO_CARDS="-nvidia" 0 kB

Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
Comment 5 Alexis Ballier gentoo-dev 2009-09-14 21:00:58 UTC
you need ~arch ffmpeg for ~arch x264
Comment 6 Fabian Henze 2009-09-14 21:07:46 UTC
(In reply to comment #5)
> you need ~arch ffmpeg for ~arch x264

And is it impossible to fix that? If I build an older x264, emerge ffmpeg 0.5-r1 and emerge the ~arch x264 later, I can use ffmpeg with libx264 for encoding.
Comment 7 Alexis Ballier gentoo-dev 2009-09-15 07:25:10 UTC
(In reply to comment #6)
> (In reply to comment #5)
> > you need ~arch ffmpeg for ~arch x264
> 
> And is it impossible to fix that? If I build an older x264, emerge ffmpeg
> 0.5-r1 and emerge the ~arch x264 later, I can use ffmpeg with libx264 for
> encoding.

That just happens to work because you have preserve-libs. I've adjusted the deps for ffmpeg 0.5 -> fixed.