<html>
<head>
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Il 28/10/2013 16:58, Alex Cohn ha
scritto:<br>
</div>
<blockquote
cite="mid:CADiKgog=kfj573B7BybYCrVUC2Ep-vEBgmMmXFNm_7ad-O81Fg@mail.gmail.com"
type="cite">
<p dir="ltr">On Oct 28, 2013 3:21 PM, "Zanelli Franco" <<a
moz-do-not-send="true" 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>
</blockquote>
Yes I did. I got the same response that using --enable-pic.<br>
I tried also to use -mcmodel=large, but in that case ffmpeg
compilation didn't success<br>
<br>
<blockquote
cite="mid:CADiKgog=kfj573B7BybYCrVUC2Ep-vEBgmMmXFNm_7ad-O81Fg@mail.gmail.com"
type="cite">
<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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Libav-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a>
<a class="moz-txt-link-freetext" href="http://ffmpeg.org/mailman/listinfo/libav-user">http://ffmpeg.org/mailman/listinfo/libav-user</a>
</pre>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=ISO-8859-1">
<title>Franco Zanelli</title>
<meta name="GENERATOR" content="OpenOffice.org 3.3 (Win32)">
<meta name="AUTHOR" content="Laura Benedetti">
<meta name="CREATED" content="20071120;9540000">
<meta name="CHANGEDBY" content="franco">
<meta name="CHANGED" content="20071120;9560000">
<style type="text/css">
<!--
@page { margin-left: 2cm; margin-right: 2cm; margin-top: 2.5cm; margin-bottom: 2cm }
P { margin-bottom: 0.21cm; direction: ltr; color: #000000; text-align: left; widows: 2; orphans: 2 }
P.western { font-family: "Times New Roman", serif; font-size: 12pt; so-language: it-IT }
P.cjk { font-family: "Times New Roman", serif; font-size: 12pt; so-language: zh-CN }
P.ctl { font-family: "Times New Roman", serif; font-size: 12pt; so-language: ar-SA }
A:link { color: #0000ff }
-->
</style>
<p style="margin-bottom: 0.49cm"><img
src="cid:part2.07030502.07090201@tecnosens.it"
name="immagini1" width="117" align="BOTTOM" border="0"
height="88"></p>
<p style="margin-bottom: 0cm; line-height: 120%" align="LEFT"><font
face="Verdana, sans-serif"><font size="2"><b>Ing. Franco
Zanelli</b></font></font><br>
<font face="Verdana, sans-serif"><font size="2">Sviluppo
Software - Divisione Sistemi Videosorveglianza</font></font>
<br>
<font face="Verdana, sans-serif"><font size="2"><i>Software
Engineer - Videosecurity System Division</i></font></font>
</p>
<p style="margin-top: 0.49cm; margin-bottom: 0.49cm"><font
face="Verdana, sans-serif"><font size="2"><b>TECNO</b></font></font><font
color="#ffcc00"><font face="Verdana, sans-serif"><font
size="2"><b>SENS</b></font></font></font><font
face="Verdana, sans-serif"><b> </b></font><font
color="#000000"><font face="Verdana, sans-serif"><font
size="2"><b>S.P.A.</b></font></font></font><br>
<font face="Verdana, sans-serif"><font size="2">Via Vergnano,
n.16, 25125 BRESCIA - ITALIA</font></font><br>
<font color="#000000"><font face="Verdana, sans-serif"><font
size="2"><b>Tel</b></font></font></font><font
color="#000080"><font face="Verdana, sans-serif"><font
size="2"><b>:</b></font></font></font><font face="Verdana,
sans-serif"><font size="2"> +39 030.3534144</font></font><font
face="Verdana, sans-serif"><b> </b></font><font
color="#000000"><font face="Verdana, sans-serif"><font
size="2"><b>Fax</b></font></font></font><font
color="#000080"><font face="Verdana, sans-serif"><font
size="2"><b>:</b></font></font></font><font face="Verdana,
sans-serif"> </font><font face="Verdana, sans-serif"><font
size="2">+39 030.3530815</font></font><br>
<font color="#000000"><font face="Verdana, sans-serif"><font
size="2"><b>Email:</b></font></font></font><font
face="Verdana, sans-serif"><u><b> </b></u></font><font
color="#0000ff"><font face="Verdana, sans-serif"><font
size="2"><u><b><a class="moz-txt-link-abbreviated" href="mailto:fzanelli@tecnosens.it">fzanelli@tecnosens.it</a></b></u></font></font></font><br>
<font color="#000000"><font face="Verdana, sans-serif"><font
size="2"><b>Web:</b></font></font></font><font
face="Verdana, sans-serif"><u><b> </b></u></font><font
color="#0000ff"><u><a href="http://www.tecnosens.it/"><font
face="Verdana, sans-serif"><font size="2"><b>http://www.tecnosens.it</b></font></font></a></u></font>
</p>
<p class="western" style="margin-bottom: 0cm" lang="en-GB"><br>
</p>
</div>
</body>
</html>