Luca Abeni wrote:
> Mayank Agarwal wrote:
>> Whenever i tries to link the libavformat.so file with my project i get the
>> error message skipping incompatible libavformat.so while searching for
>> -lavformat.
>>
>> If i don't include the above library in my project i get
>> av_register_all,av_read_frame,etc not defined.
> 
> Since this is about the fifth time I read the same question, linking
> a dynamic libavformat must be really difficult...
> Let's see if I can help you.
> 
> First random idea: let's read the INSTALL file (I do not know why
> I got this idea... But today I feel particularly inspired)
> -----------------8<-----------------8<---------------
> 1) Type './configure' create the configuration (use './configure
> --help' to have the configure options).
> 
> 'configure' can be launched from another directory than the ffmpeg
> sources to put the objects at that place. In that case, use an
> absolute path when launching 'configure',
> e.g. /ffmpegdir/ffmpeg/configure.
> 
> 2) Then type 'make' to build ffmpeg. On BSD systems, type 'gmake'
> instead of 'make'. You may need to install GNU make first.
> 
> 3) Type 'make install' to install ffmpeg and ffserver in
> /usr/local/bin.
> ---------------8<--------------------8<--------------
> So, after running "./configure --help", and carefully reading
> the output, let's try
> ./configure --enable-shared --prefix=<wherever I want to install>
> and then, the most difficult part:
> make
> 
> Ops... I am lucky today: it perfectly compiled, and ffmpeg was
> successfully linked against libavutil.so, libavformat.so, and
> libavcodec.so...
> 
> I am pretty sure you can now repeat these steps, look at the
> black magic used by ffmpeg's Makefile to link libavformat.so,
> and repeat it.

I suspect the OP has another libavformat.so installed on the system, 
possibly from some package installed automatically. So, I would 
recommend, before the make install, a serious hunt-and-destroy for 
libavformat.so (and bros.) everywhere.

-- 
Michel Bardiaux
http://www.mediaxim.com/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to