[MPlayer-users] x264 + CVS Mplayer on OS X

Rickard Närström rickard.narstrom at gmail.com
Thu May 19 01:43:32 CEST 2005

Den 2005-05-18 21:24:20 skrev Kichigai Mentat <kichigai at comcast.net>:

> Hello. I'm trying to compile MPlayer for Mac OS X, and, for the most  
> part, the CVS MPlayer isn't giving me any problems. Except that it's not  
> recognizing my installation of x264. Here's the command I'm using for  
> configure:
> Tenshi:~/main ivan$ ./configure --with-glib-config=/sw/bin/glib-config  
> --with-gtk-config=/sw/bin/gtk-config --with-sdl-config=/opt/ 
> local/bin/sdl-config --with-freetype-config=/usr/X11R6/bin/freetype- 
> config --with-xanimlibdir=/usr/local/lib/codecs/ --enable-macosx- 
> finder-support --enable-largefiles --with-x264libdir=/usr/local/lib -- 
> with-x264incdir=/usr/local/include/
> And here's the output:
>    Enabled optional drivers:
>      Input: ftp network edl tv matroska mpdvdkit2 vcd
>      Codecs: libavcodec real xanim faad2(internal) libmpeg2 liba52  
> mp3lib tremor(internal)
>      Audio output: esd sdl mpegpes(file) macosx
>      Video output: sdl md5sum pnm mpegpes(file) opengl xv x11 xover tga  
> macosx quartz
>      Audio filters:
>    Disabled optional drivers:
>      Input: vstream tv-v4l2 tv-v4l tv-bsdbt848 live.com cdda dvdread dvb  
> smb
>      Codecs: qtx opendivx x264 xvid libdv amr_wb amr_nb dshow/dmo win32  
> libdts libtheora twolame toolame libmad liblzo gif  faac
>      Audio output: sgi sun alsa jack polyp arts oss dxr2 nas dsound win32
>      Video output: xvidix winvidix cvidix bl zr zr2 dxr3 dxr2 directx  
> vesa gif89a jpeg png fbdev svga caca aa ggi xmga mga dga xvmc directfb  
> tdfx_vid tdfxfb 3dfx
>      Audio filters: ladspa
> The configure log shows this:
> ============ Checking for x264 ============
> #include <inttypes.h>
> #include <x264.h>
> #if X264_BUILD < 24
> #error We do not support old versions of x264. Get the latest from SVN.
> #endif
> int main(void) { x264_encoder_open((void*)0); return 0; }
> cc     /tmp/mplayer-conf-7566-21867.c -o /tmp/mplayer-conf-19803-21867.o  
> -I/usr/local/include/ -L/usr/local/lib -lx264 -lm
> /usr/bin/ld: table of contents for archive: /usr/local/lib/libx264.a is  
> out of date; rerun ranlib(1) (can't load from it)
> collect2: ld returned 1 exit status
> ldd /tmp/mplayer-conf-19803-21867.o
> otool: can't open file: /tmp/mplayer-conf-19803-21867.o (No such file or  
> directory)
> Result is: no
> However, the version of x264 I installed is the latest svn install. Any  
> help with this one? Thanks.
> --Ivan Kowalenko

The error is:
/usr/bin/ld: table of contents for archive: /usr/local/lib/libx264.a is  
out of date; rerun ranlib(1) (can't load from it)

With means your libx264.a is damaged, try to recompile libx264 - it maybe  
can be fixed esyer my knowlige of librarys and MacOSX isn't so good.

More information about the MPlayer-users mailing list