[Ffmpeg-devel] ffmpeg + x264 + enable shared on Pentium D (64 bit)

CHRis Halse Rogers chalserogers
Thu Mar 9 00:16:57 CET 2006


On 3/9/06, M?ns Rullg?rd <mru at inprovide.com> wrote:
> "CHRis Halse Rogers" <chalserogers at gmail.com> writes:
>
> > On 3/9/06, M?ns Rullg?rd <mru at inprovide.com> wrote:
> >>
> >> Martin said:
> >> > Hi,
> >> >
> >> > i have problems building ffmpeg with x264 as shared lib:
> >> [...]
> >> > /usr/lib64/gcc/x86_64-suse-linux/4.0.2/../../../../x86_64-suse-
> >> > linux/bin/ld: /usr/local/lib/libx264.a(common.o): relocation R_X86_64_32S
> >> > against `a local symbol' can not be used when making a shared object;
> >> > recompile with -fPIC
> >>
> >> Do as it tells you, recompile x264 with -fPIC.
> >>
> > And if you can (on x86-64), please tell me how :).  Last time I tried,
> > the assembly didn't support PIC.  Or, at least, *I* couldn't get it to
> > build properly.
>
> When was that?  There have been some fixes to that area lately.  I
> don't have an amd64 so I can't test it, unfortunately.
>
It was a couple of months ago.  I've just checked the latest svn
version, and passing --enable-pic to ./configure successfully builds
PIC code.  Yay!





More information about the ffmpeg-devel mailing list