Re: [Libav-user] compiling ffmpeg with -fPIC

2013-10-28 Thread Zanelli Franco
Hi, did you solve the problem? I experienced it when I was trying to include static ffmpeg libraries (libavcodec.a, libavformat.a ...) in my shared lib (mylib.so) on a 64 bit linux platform, but I don't know how to solve, can you help me please? Il 01/05/2013 16:41, Dayana ha scritto:

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-10-28 Thread Carl Eugen Hoyos
Zanelli Franco fzanelli@... writes: I experienced it when I was trying to include static ffmpeg libraries (libavcodec.a, libavformat.a ...) in my shared lib (mylib.so) on a 64 bit linux platform, but I don't know how to solve, can you help me please? Could you explain (FFmpeg version,

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-10-28 Thread Zanelli Franco
Ok, I'd like to make a shared library called mylib.so that include static ffmpeg libraries libavcodec.a libavformat.a ..etc. in order to have just one shared library I'm working on a linux machine 64 bit (ubuntu 12.04). I've built ffmpeg libraries from ffmpeg 2.0.1 sources with this

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-10-28 Thread Zanelli Franco
Il 28/10/2013 16:58, Alex Cohn ha scritto: On Oct 28, 2013 3:21 PM, Zanelli Franco fzane...@tecnosens.it wrote: Ok, I'd like to make a shared library called mylib.so that include static ffmpeg libraries libavcodec.a libavformat.a ..etc. in order to have just

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-06 Thread Dayana
Hi Gavin!! I set -shared -Wl,-Bsymbolic in the linker flags of my library, that depends of libavcodec, libavutil, libavformat... However when Im going to call av_register_all(); I get the same error: /usr/local/lib/libavcodec.a(lpc_mmx.o): relocation R_X86_64_PC32 against symbol `ff_pd_1'

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-06 Thread Ratin
On Mon, May 6, 2013 at 6:18 AM, Dayana dri...@cenatav.co.cu wrote: Hi Gavin!! I set -shared -Wl,-Bsymbolic in the linker flags of my library, that depends of libavcodec, libavutil, libavformat... However when Im going to call av_register_all(); I get the same error:

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-06 Thread Dayana
I am a little confused, do you get this error when you are trying to use libavcodec.a into another of your projects or during compilation of libavcodec itself? In the latter case why are you building a static library (i.e. libavcodec.a instead of a libavcodec.so ) ? You need to build

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-06 Thread Chung Leong
Date: Mon, 6 May 2013 09:18:58 -0400 From: dri...@cenatav.co.cu To: libav-user@ffmpeg.org Subject: Re: [Libav-user] compiling ffmpeg with -fPIC Hi Gavin!! I set -shared -Wl,-Bsymbolic in the linker flags of my library, that depends of libavcodec, libavutil, libavformat

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-06 Thread Chung Leong
Let me correct myself. The problematic symbol in the situation here is ff_pd_1, a global variable. It's declared with the attribute visibility(hidden). The symbol isn't exported. Knowing this, gcc apparently doesn't generate PIC code for accessing it even when you add -fPIC. By default, gcc

[Libav-user] compiling ffmpeg with -fPIC

2013-05-01 Thread Dayana
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:

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-01 Thread Carl Eugen Hoyos
Dayana dribas@... writes: 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) You are (still)

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-01 Thread Ratin
On Wed, May 1, 2013 at 7:41 AM, Dayana dri...@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

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-01 Thread Ratin
On Wed, May 1, 2013 at 8:00 AM, Ratin rat...@gmail.com wrote: On Wed, May 1, 2013 at 7:41 AM, Dayana dri...@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

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-01 Thread Dayana
|First of all thanks a lot!! ./configure --extra-cflags=-||fPIC assuming you do --enable-shared option, and not statically linking | |You are (still) trying to link a static library - /usr/local/lib/libavcodec.a - with a shared object compiled with -fpic which cannot work. Im only did

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-01 Thread Carl Eugen Hoyos
Ratin ratin3@... writes: ./configure --extra-cflags=-fPIC This is not a good idea since an equivalent option exists (that may set additional settings). Carl Eugen ___ Libav-user mailing list Libav-user@ffmpeg.org

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-01 Thread Ratin
On Wed, May 1, 2013 at 8:04 AM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Ratin ratin3@... writes: ./configure --extra-cflags=-fPIC This is not a good idea since an equivalent option exists (that may set additional settings). Carl Eugen ___

Re: [Libav-user] compiling ffmpeg with -fPIC

2013-05-01 Thread Dayana
I tried with ./configure --extra-cflags=-fPIC and I 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 :( On 05/01/2013 12:05 PM, Ratin wrote: On Wed, May