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

Luca Abeni lucabe72
Tue Oct 3 09:54:39 CEST 2006


Hi Pavlov,

On Tue, 2006-10-03 at 10:43 +0400, Pavlov Konstantin 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'
I think a fix for this problem has been posted on the mailing list; you
can search the archives and try it.

However, I do not know if the patch has been rejected, or what happened
to it...


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





More information about the ffmpeg-devel mailing list