I am using DEV  C++ developer under windows. Here i cant find any .lib files like old borland c compilers. <br>What i have done step by step is:<br><br>Open ffmpeg.c file in DEV C++ compiler.<br>Set Include directory from tools/compiler options/ directories to ffmpeg/libavcodec.<br>
(There is a another setting place for libraries which i dont know i should set it to which directory.)<br>Compile the program.<br><br>I get some compiler error such as:<br>"Line 30 In file include c:\.......libavutil\avutil.h"<br>
Whats your advice?<br><br><div class="gmail_quote">On Wed, Jul 6, 2011 at 1:39 PM, Matthew Einhorn <span dir="ltr"><<a href="mailto:moiein2000@gmail.com">moiein2000@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div></div><div class="h5">On Tue, Jul 5, 2011 at 11:15 PM, Amir Rouhi-Rmit <<a href="mailto:amir.rouhi@rmit.edu.au">amir.rouhi@rmit.edu.au</a>> wrote:<br>
> Please help me, I use DEV c++ compiler in windows platform. I build a<br>
> project in this compiler and add utils.c (with al its headers and functions)<br>
> to the project, but when i want to compile the program, it does not<br>
> recognise all the header files used in utils.c  such as #include<br>
> "avformat.h". It seems that i have a problem in including new library files<br>
> or in linking. Even i add the libavecodec path for new header files location<br>
> but still does not recognise them.<br>
><br>
> On Tue, Jul 5, 2011 at 4:37 PM, Clément Bœsch <<a href="mailto:ubitux@gmail.com">ubitux@gmail.com</a>> wrote:<br>
>><br>
>> On Tue, Jul 05, 2011 at 04:27:16PM +1000, Amir Rouhi-Rmit wrote:<br>
>> > I found dump_format() function (not av_dump_format() ) among ffmpeg<br>
>> > source<br>
>> > codes :  dump_format(ic, 0, is->filename, 0);<br>
>><br>
>> You are not up to date then…<br>
>><br>
>> > but i would be pleased if you let me know how can i find a tutorial<br>
>> > which<br>
>> > shows how can i use the function ? and which header should be included?<br>
>> ><br>
>><br>
>> av_dump_format() is just a printing function. It is defined in<br>
>> libavformat/utils.c. You can look into this file how where it finds the<br>
>> various information it prints.<br>
>><br>
>> If you need some examples on how to use the API, look at the ffmpeg.c,<br>
>> ffplay.c and ffprobe.c. Also, doc/examples contains various codes that<br>
>> might help you.<br>
>><br>
>> Note: please do not top post, it is considered rude.<br>
>><br>
>> [...]<br>
>><br>
>> --<br>
>> Clément B.<br>
>><br>
>> _______________________________________________<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>
>><br>
><br>
><br>
><br>
> --<br>
> Amir H. Rouhi<br>
> PhD Student/ CSIT RMIT University<br>
> Room: 14-09-04<br>
> <a href="mailto:rouhi_amirhossein@student.rmit.edu.au">rouhi_amirhossein@student.rmit.edu.au</a><br>
> <a href="mailto:amir.rouhi@rmit.edu.au">amir.rouhi@rmit.edu.au</a><br>
><br>
><br>
> _______________________________________________<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>
><br>
><br>
<br>
</div></div>Please don't top post.<br>
<br>
A couple of reasons why it might not work is that you have to wrap all<br>
the ffmpeg includes in a extern "C"  declaration. Also, assuming that<br>
you didn't build ffmpeg yourself, did you link dynamically or<br>
statically? And if statically, did you link to the .lib files? You<br>
should include some kind of error massage, otherwise it's hard to know<br>
what's going wrong.<br>
<br>
Matt<br>
<div><div></div><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><br clear="all"><br>-- <br><div>Amir H. Rouhi</div>
<div>PhD Student/ CSIT RMIT University</div>
<div>Room: 14-09-04</div>
<div><a href="mailto:rouhi_amirhossein@student.rmit.edu.au" target="_blank">rouhi_amirhossein@student.rmit.edu.au</a></div>
<div><a href="mailto:amir.rouhi@rmit.edu.au" target="_blank">amir.rouhi@rmit.edu.au</a></div>
<div> </div><br>