[Ffmpeg-devel] [patch] log2 undefined in x264.c on FBSD 5.4

Måns Rullgård mru
Wed Nov 9 09:51:03 CET 2005

"Steven M. Schultz" <sms at 2BSD.COM> writes:

> Hi -
> 	Got this when building on FreeBSD 5.4 (AMD64):
> gcc -Wl,--warn-common -export-dynamic -pthread -g  -o ffmpeg_g ffmpeg.o cmdutils.o -L./libavformat -lavformat -L./libavcodec -lavcodec -L./libavutil -lavutil -lm -lfaad -lfaac -lmp3lame -logg -lvorbis -lvorbisenc -lxvidcore -lx264 -lz 
> ./libavcodec/libavcodec.a(x264.o)(.text+0x2fa): In function `X264_init':
> /usr/local/src/ffmpeg/libavcodec/x264.c:152: undefined reference to `log2'
> gmake: *** [ffmpeg_g] Error 1
> 	changing the log2() to av_log2() in libavcodec/x264.c fixed the
> 	problem
> 	Trivial patch attached.

Applied.  Thanks.

M?ns Rullg?rd
mru at inprovide.com

More information about the ffmpeg-devel mailing list