<div dir="ltr"><div style>I am using ffmpeg version 1.1.1 now.</div><div><br></div><div style>The examples in</div>/doc/examples all compile without any issue.<div><br></div><div style>The program i am compiling is here</div>
<div style><a href="http://libccv.org/post/ccv-now-has-a-state-of-art-tracking-algorithm/">http://libccv.org/post/ccv-now-has-a-state-of-art-tracking-algorithm/</a><br></div><div style>I plan to install it on a gumstix with Angstrom linux and opkg doesn't support ffmpeg.</div>
<div style>So i build from scratch.</div><div style><br></div><div style>Compilation to object file stage proceeds without any issue( which implies it found the ffmpeg headers).</div><div style>It is the linker that gives me errors always. These are the errors with version 1.1.1 of ffmpeg</div>
<div style><br></div><div style><div>clang -o tld tld.o -L"../lib" -lccv -lavformat -lavcodec -lswscale -lz -lm</div><div><br></div><div>/usr/local/lib/libavformat.a(concat.o): In function `concat_close':</div>
<div>/home/srinath/Downloads/ffmpeg-1.1.1/libavformat/concat.c:52: undefined reference to `av_freep'</div><div><br></div><div style>And many many more similar errors.</div><div style>I don't have the luxury of using pkg-config, on a gumstix and have built from scratch.</div>
<div style>Do these sorts of errors ring a bell as to where i should look?</div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jan 21, 2013 at 6:21 PM, Stefano Sabatini <span dir="ltr"><<a href="mailto:stefasab@gmail.com" target="_blank">stefasab@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">In data Monday 2013-01-21 15:29:07 +0530, Srinath M ha scritto:<br>
<div><div class="h5">> Hi<br>
><br>
> I am using ffmpeg version 0.11.1 with Ubuntu 10.04<br>
> I get the following linker errors when i try to compile a program<br>
> tld.c:(.text+0x1a7): undefined reference to `avformat_network_init'<br>
> tld.c:(.text+0x1c9): undefined reference to `avformat_open_input'<br>
> tld.c:(.text+0x1dc): undefined reference to `avformat_find_stream_info'<br>
> tld.c:(.text+0x255): undefined reference to `avcodec_open2'<br>
> tld.c:(.text+0x333): undefined reference to `avcodec_decode_video2'<br>
> tld.c:(.text+0x525): undefined reference to `avcodec_decode_video2'<br>
><br>
> Which version of ffmpeg should i be using?<br>
> is this a ffmpeg issue in the first place?<br>
<br>
</div></div>Check doc/examples/Makefile, you should rely on pkg-config unless you<br>
really know what you're doing. A basic knowledge of linking/Makefile<br>
may also help.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a><br>
</div></div></blockquote></div><br></div>