[Ffmpeg-devel] Error Compiling FFMPEG

Jacob Meuser jakemsr
Tue Jun 7 09:59:01 CEST 2005


On Tue, Jun 07, 2005 at 09:47:26AM +0200, M?ns Rullg?rd wrote:
> Jacob Meuser <jakemsr at jakemsr.com> writes:
> 
> > On Sat, Jun 04, 2005 at 01:24:23PM +0200, M?ns Rullg?rd wrote:
> >> blackman at pharm.uoa.gr writes:
> >> 
> >> > I got an AMD64 and Fedora core 3 64Bit
> >> >
> >> > when I try compile the ffmpeg I do configure:
                              ^^^^^^
> >> >
> >> > ./configure --enable-shared --prefix=/usr --enable-mp3lame --enable-xvid
> >> > --enable-gpl --enable-a52
> >> >
> >> > and then 
> >> >
> >> > make
> >> >
> >> > gives the following error
> >> >
> >> > /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.

-- 
<jakemsr at jakemsr.com>





More information about the ffmpeg-devel mailing list