<html>
<head>
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hello again,<br>
Did someone experienced the same problem and can help me to
understand what is wrong please?<br>
Thank you<br>
<br>
Franco<br>
<br>
Il 28/10/2013 14:20, Zanelli Franco ha scritto:<br>
</div>
<blockquote
cite="mid:A95AF8BE97643040B04B87EF3ED776F401857024@server01.tecnosens.local"
type="cite">
<div class="moz-cite-prefix">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<br>
<br>
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<br>
<br>
<br>
<br>
Il 28/10/2013 12:37, Carl Eugen Hoyos ha scritto:<br>
</div>
<blockquote cite="mid:loom.20131028T123650-667@post.gmane.org"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="MS Exchange Server version
6.5.7638.1">
<title>Re: [Libav-user] compiling ffmpeg with -fPIC</title>
<!-- Converted from text/plain format -->
<p><font size="2">Zanelli Franco <a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="mailto:fzanelli@..."><fzanelli@...></a>
writes:<br>
<br>
> I experienced it when I was trying to include static
ffmpeg<br>
> libraries (libavcodec.a, libavformat.a ...) in my
shared lib<br>
> (mylib.so) on a 64 bit linux platform, but I don't know
how to<br>
> solve, can you help me please?<br>
<br>
Could you explain (FFmpeg version, configure line, etc.)<br>
how to reproduce your problem? That may allow us to help.<br>
<br>
Carl Eugen<br>
<br>
_______________________________________________<br>
Libav-user mailing list<br>
<a moz-do-not-send="true" class="moz-txt-link-abbreviated"
href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a moz-do-not-send="true"
href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</font> </p>
</blockquote>
<p class="western" style="margin-bottom: 0cm" lang="en-GB"><br>
</p>
</blockquote>
<br>
</body>
</html>