[Ffmpeg-devel] Error Compiling FFMPEG
Måns Rullgård
mru
Tue Jun 7 10:23:30 CEST 2005
Jacob Meuser <jakemsr at jakemsr.com> writes:
>> >> > /usr/bin/ld: bitstream.o: relocation R_X86_64_32 against `a local
>> >> > symbol' can not be used when making a shared object; recompile
>> >> > with -fPIC
>> >>
>> >> Do as it tells you, add --extra-cflags=-fPIC to your configure flags.
>> >
>> > but then you get PIC _everywhere_, not just in library objects.
>>
>> Which part of libavcodec is not a library?
>
> the user is compiling all of FFmpeg, which includes ffmpeg, ffplay,
> and ffserver.
>
> the --extra-cflags option adds the specified flags the CFLAGS that
> are used everywhere when compiling FFmpeg.
>
> so, using --extra-cflags=-fPIC will add -fPIC to the CFLAGS used to
> compile ffmpeg, ffplay, and ffserver.
OK, but why is that a problem? The reason for not using is -fPIC is
the sometimes slower code it produces, but that should be
insignificant for those three programs. 99.99% of the time is spent
in libavcodec anyway.
--
M?ns Rullg?rd
mru at inprovide.com
More information about the ffmpeg-devel
mailing list