[Libav-user] compiling ffmpeg with -fPIC

Ratin ratin3 at gmail.com
Wed May 1 17:03:16 CEST 2013


On Wed, May 1, 2013 at 8:00 AM, Ratin <ratin3 at gmail.com> wrote:

> On Wed, May 1, 2013 at 7:41 AM, Dayana <dribas at cenatav.co.cu> wrote:
>
>> Hi!!! Im developing an aplication using libavcodec, libavformat and
>> libavutil. Im trying to make a shared library and for that I have to get
>> libavs compiled with -fPIC ... I was trying to do it by setting
>> --enable-pic in the configure file, however Im still have the same error:
>>
>> /usr/local/lib/libavcodec.a(**lpc_mmx.o): relocation R_X86_64_PC32
>> against symbol `ff_pd_1' can not be used when making a shared object;
>> recompile with -fPIC
>>
>>
>> could somebody give me a hint please??
>>
>> :) dayana
>>
>
>
>
> ./configure --extra-cflags="-fPIC"
>
> assuming you do --enable-shared option, and not statically linking
>
>

> ______________________________**_________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/**listinfo/libav-user<http://ffmpeg.org/mailman/listinfo/libav-user>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20130501/a6bf778b/attachment.html>


More information about the Libav-user mailing list