[Ffmpeg-devel] unable to build shared ffmpeg on x86_64 with swscale

Aurelien Jacobs aurel
Tue Oct 3 15:28:18 CEST 2006

On Tue, 3 Oct 2006 10:43:51 +0400
Pavlov Konstantin <thresh at cpms.ru> wrote:

> Hello.
> gcc -shared -Wl,-soname,libswscale.so.0 -Wl,--warn-common   -pthread -rdynamic -export-dynamic -Wl,--as-needed -Wl,-rpath-link,/usr/src/RPM/BUILD/ffmpeg-0.5.0/libavcodec -Wl,-rpath-link,/usr/src/RPM/BUILD/ffmpeg-0.5.0/libavformat -Wl,-rpath-link,/usr/src/RPM/BUILD/ffmpeg-0.5.0/libavutil -o 
> libswscale.so.0 swscale.o rgb2rgb.o 
> yuv2rgb.o -L../libavutil -lavutil -L../libavutil -lavutil -lm -lz -ldts -lgsm -lmp3lame -lvorbis -lvorbisenc -logg -logg -lxvidcore -lx264 -ldc1394_control -lraw1394 -lfaac -lfaad -ldl
> ar rc libswscale.a swscale.o rgb2rgb.o yuv2rgb.o
> ranlib libswscale.a
> /usr/bin/ld: swscale.o: relocation R_X86_64_32S against `a local symbol' can 
> not be used when making a shared object; recompile with -fPIC
> swscale.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> make[1]: *** [libswscale.so.0] Error 1
> make[1]: Leaving directory `/usr/src/RPM/BUILD/ffmpeg-0.5.0/libswscale'
> make: *** [lib] Error 2
> make: Leaving directory `/usr/src/RPM/BUILD/ffmpeg-0.5.0'
> all OK when i --enable-static --disable-shared.
> suggestions?

Latest svn builds fine here on x86_64 with
./configure --enable-gpl --enable-shared --enable-swscaler


More information about the ffmpeg-devel mailing list