<p dir="ltr">On Oct 28, 2013 3:21 PM, "Zanelli Franco" <<a href="mailto:fzanelli@tecnosens.it">fzanelli@tecnosens.it</a>> wrote:<br>
><br>
> Ok,<br>
> 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<br>
> I'm working on a linux machine 64 bit (ubuntu 12.04).<br>
> I've built ffmpeg libraries from ffmpeg 2.0.1 sources with this configuration:<br>
> --prefix="$HOME/ffmpeg_build" --extra-cflags="-m64 -I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" --bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-libmp3lame --enable-libx264 --enable-pic</p>
<p dir="ltr">Have you tried<br>
… --extra-cflags="-fPIC -m64 -I$HOME/ffmpeg_build/include"</p>
<p dir="ltr">> When I link the avlibs in mine, with this command:<br>
> gcc -m64 -o mylib.so -L../ffmpeg_build/lib /home/uts/ffmpeg_build/lib/libavcodec.a -Wl,-R. -shared -s -fPIC<br>
><br>
> I always get this error:<br>
> /usr/bin/ld: /home/uts/ffmpeg_build/lib/libavcodec.a(deinterlace.o): relocation R_X86_64_PC32 against symbol `ff_pw_4' can not be used when making a shared object; recompile with -fPIC<br>
> /usr/bin/ld: final link failed: Bad value<br>
><br>
> The same procedure on a x86 linux platform succeded.<br>
> This is the same problem experienced from Dayana in this mailing list the 1st may 2013, I read the answers but they were not helpful<br>
> Can you help me please?<br>
><br>
> thank you</p>
<p dir="ltr">Alex Cohn</p>