[MPlayer-users] MPlayer does not link to x264: undefined reference to `__log2f_finite'

andrew andrew at andrews-corner.org
Tue Aug 7 10:04:23 CEST 2012


On Mon, Aug 06, 2012 at 03:40:05PM +0000, Carl Eugen Hoyos wrote:
> andrew <andrew <at> andrews-corner.org> writes:
> 
> > > I committed another change, please test if current svn (without 
> > > any additional changes) work for you.
> > 
> > Unfortunately the new changes did not allow the static x264 to be
> > picked up.
> 
> New try committed.
> 
> Please test, Carl Eugen

Oddly enough with the latest changes:

andrew at corinth:~$ mplayer | head -n 1
MPlayer SVN-r35061-4.6 (C) 2000-2012 MPlayer Team

static x264 cannot be found at all. I attach the relevant part of
config.log. I am hoping that my build method is not contributing to
this problem? Details temporarily here:

http://www.andrews-corner.org/mplayer.html

No spamming / advertising intended, just don't want to unnecessarily
waste your time...

Thanks again,

Andrew

============ Checking for x264 ============

#include <inttypes.h>
#include <x264.h>
#if !(X264_BUILD >= 118)
#error We do not support old versions of x264. Get the latest from git.
#endif
int main(void) { x264_encoder_open((void*)0); return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure--30086/tmp.c -Ilibdvdread4 -I. -Iffmpeg -I/home/andrew/mplayer_build/mplayer_deps/usr/include -D_REENTRANT -I/usr/include/directfb -I/usr/include/     -D_REENTRANT    -I/usr/include/freetype2  -I/home/andrew/mplayer_build/mplayer_deps/usr/lib -ffast-math   -lncurses -lsmbclient -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -lcdda_interface -lcdda_paranoia -L/usr/lib/i386-linux-gnu -lfreetype -lz -lfontconfig  -lfribidi -lass -lenca -lz -lspeex -ltheoradec -logg -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment -lstdc++ -lrtmp -lopencore-amrnb -lopencore-amrwb -ldv -lxvidcore  -ldirectfb  -lXext -lX11 -lpthread -lXv -lvdpau -lXinerama -lXxf86vm -lXxf86dga -laa -L/usr/lib/i386-linux-gnu -lcaca -lvga -lSDL -lGL -ldl -lesd   -lpulse   -ljack -lfaac  -lfaac -o /tmp/mplayer-configure--30086/tmp -lx264 -lpthread -lm
/usr/bin/ld: cannot find -lx264
collect2: ld returned 1 exit status



#include <inttypes.h>
#include <x264.h>
#if !(X264_BUILD >= 118)
#error We do not support old versions of x264. Get the latest from git.
#endif
int main(void) { x264_encoder_open((void*)0); return 0; }

cc -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -Werror-implicit-function-declaration -O4 -march=native -mtune=native -pipe -ffast-math -fomit-frame-pointer -fno-tree-vectorize /tmp/mplayer-configure--30086/tmp.c -Ilibdvdread4 -I. -Iffmpeg -I/home/andrew/mplayer_build/mplayer_deps/usr/include -D_REENTRANT -I/usr/include/directfb -I/usr/include/     -D_REENTRANT    -I/usr/include/freetype2  -I/home/andrew/mplayer_build/mplayer_deps/usr/lib -ffast-math   -lncurses -lsmbclient -lpng -lz -ljpeg -lungif -lasound -ldl -lpthread -lcdda_interface -lcdda_paranoia -L/usr/lib/i386-linux-gnu -lfreetype -lz -lfontconfig  -lfribidi -lass -lenca -lz -lspeex -ltheoradec -logg -lliveMedia -lgroupsock -lBasicUsageEnvironment -lUsageEnvironment -lstdc++ -lrtmp -lopencore-amrnb -lopencore-amrwb -ldv -lxvidcore  -ldirectfb  -lXext -lX11 -lpthread -lXv -lvdpau -lXinerama -lXxf86vm -lXxf86dga -laa -L/usr/lib/i386-linux-gnu -lcaca -lvga -lSDL -lGL -ldl -lesd   -lpulse   -ljack -lfaac  -lfaac -o /tmp/mplayer-configure--30086/tmp -lx264 -lpthread -lm
/usr/bin/ld: cannot find -lx264
collect2: ld returned 1 exit status


Result is: no (in FFmpeg: no)
##########################################


-- 
You think that's air you're breathing now?


More information about the MPlayer-users mailing list