[x264-devel] Re: relocation error on x86_64

Loren Merritt lorenm at u.washington.edu
Fri Aug 19 19:47:43 CEST 2005


On Fri, 19 Aug 2005, sean darcy wrote:

> I tried building ffmpeg with just static libs, then I got:
>
> gcc -O3 -g -Wall -Wno-switch  -mtune=athlon64 -fPIC -ftree-vectorize
> -pipe -mfpmath=sse -I. -I'/usr/src/redhat/BUILD/ffmpeg'
> -I'/usr/src/redhat/BUILD/ffmpeg'/libavutil
> -I'/usr/src/redhat/BUILD/ffmpeg'/libavcodec
> -I'/usr/src/redhat/BUILD/ffmpeg'/libavformat -D_FILE_OFFSET_BITS=64
> -D_LARGEFILE_SOURCE -D_GNU_SOURCE -c -o cmdutils.o cmdutils.c
> gcc -Wl,--warn-common -rdynamic -ldl -I/usr/X11R6/include/X11 -g  -o
> ffmpeg_g ffmpeg.o cmdutils.o -L./libavformat -lavformat -L./libavcodec
> -lavcodec -L./libavutil -lavutil -lm -lx264 -lz -ldl -lpthread
> -lmp3lame -lvorbisenc -lvorbis -ltheora -logg -lfaac -lxvidcore
> /usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64/libx264.a(display-x11.o):
> In function `disp_line':
> : undefined reference to `XDrawLine'
> /usr/lib/gcc/x86_64-redhat-linux/4.0.1/../../../../lib64/libx264.a(display-x11.o):
> In function `disp_rect':
> : undefined reference to `XDrawRectangle'
> .....................

Either compile x264 without visualization, or add -lX11 to ffmpeg.

--Loren Merritt

-- 
This is the x264-devel mailing-list
To unsubscribe, go to: http://developers.videolan.org/lists.html



More information about the x264-devel mailing list