[x264-devel] new to x264 and ffmpeg

Jason Garrett-Glaser darkshikari at gmail.com
Fri Mar 5 21:49:21 CET 2010


On Fri, Mar 5, 2010 at 12:47 PM, Michael Miller
<mimiller at ncsa.illinois.edu> wrote:
> I'm new to x264 and ffmpeg, so please direct me to an alternate support source if appropriate.
>
> Today, I downloaded and tried to compile x264 for use with ffmpeg and got the following:
>
> x264]$ ./configure --enable-shared
> x264]$ make
>
> gcc -O3 -ffast-math  -Wall -I. -march=i686 -mfpmath=sse -msse -std=gnu99  -I/usr/local/include   -s -fomit-frame-pointer   -c -o input/thread.o input/thread.c
> gcc -O3 -ffast-math  -Wall -I. -march=i686 -mfpmath=sse -msse -std=gnu99  -I/usr/local/include   -s -fomit-frame-pointer   -c -o input/lavf.o input/lavf.c
> ar rc libx264.a common/mc.o common/predict.o common/pixel.o common/macroblock.o common/frame.o common/dct.o common/cpu.o common/cabac.o common/common.o common/mdate.o common/set.o common/quant.o common/vlc.o encoder/analyse.o encoder/me.o encoder/ratecontrol.o encoder/set.o encoder/macroblock.o encoder/cabac.o encoder/cavlc.o encoder/encoder.o encoder/lookahead.o common/x86/mc-c.o common/x86/predict-c.o common/x86/cabac-a.o common/x86/dct-a.o common/x86/deblock-a.o common/x86/mc-a.o common/x86/mc-a2.o common/x86/pixel-a.o common/x86/predict-a.o common/x86/quant-a.o common/x86/sad-a.o common/x86/cpu-a.o common/x86/dct-32.o common/x86/pixel-32.o
> ranlib libx264.a
> gcc -o x264 x264.o input/yuv.o input/y4m.o output/raw.o output/matroska.o output/matroska_ebml.o output/flv.o output/flv_bytestream.o input/thread.o input/lavf.o libx264.a -lm -lpthread -s -L.  -pthread -L/usr/local/lib -lavformat -lavcodec -lz -lbz2 -ltheoraenc -ltheoradec -logg -lx264 -lm -ldl -lswscale -lavutil
> /usr/local/lib/libavcodec.a(libx264.o): In function `X264_init':
> /home/mimiller/sources/ffmpeg/libavcodec/libx264.c:285: undefined reference to `x264_encoder_open_79'
> collect2: ld returned 1 exit status
> make: *** [x264] Error 1

This means your x264.h header and libx264 version don't match.  Start
by removing the old x264s cluttering your system.

Dark Shikari


More information about the x264-devel mailing list