[Ffmpeg-devel] swscaler build fails on x86-64

Luca Abeni lucabe72
Mon Sep 4 13:09:51 CEST 2006


On Sun, 2006-09-03 at 23:57 -0400, sean wrote:
> Trying to build today's svn on amd64, gcc-4.1.1, 
> binutils-
> gcc -shared -Wl,-soname,libswscale.so.0 -Wl,--warn-common 
>   -pthread -rdynamic -export-dynamic -Wl,--as-needed 
> -Wl,-rpath-link,/usr/src/redhat/BUILD/ffmpeg/libavcodec 
> -Wl,-rpath-link,/usr/src/redhat/BUILD/ffmpeg/libavformat 
> -Wl,-rpath-link,/usr/src/redhat/BUILD/ffmpeg/libavutil -o 
> libswscale.so.0 swscale.o rgb2rgb.o yuv2rgb.o -L../libavutil 
> -lavutil -lm -lz -lgsm -lmp3lame -lvorbis -lvorbisenc -logg 
> -logg -lxvidcore -lx264 -ldc1394_control -lraw1394 -lfaac 
> -lfaad -ldl
> /usr/bin/ld: yuv2rgb.o: relocation R_X86_64_PC32 against 
> `mmx_00ffw' can not be used when making a shared object; 
> recompile with -fPIC
> /usr/bin/ld: final link failed: Bad value
You are trying to compile libswscale as a shared library, right?

I found an x86-64 machine for testing, and I can reproduce this linkage
error when using --enable-shared.

I verified that on 32bit x86 swcale compiles (and works) ok either as
static or as shared library, so I suspect this is an "x86-64 + shared
library" problem.
I think shared libswscale is not supported yet on x86-64.

Copy this in your signature, if you think it is important:
                               N O    W A R ! ! !

More information about the ffmpeg-devel mailing list