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

Pavlov Konstantin thresh
Tue Oct 3 08:43:51 CEST 2006


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?

-- 
Pavlov Konstantin,
CPMS Network,
jid: thresh at altlinux.org




More information about the ffmpeg-devel mailing list