[Libav-user] FFmpeg libraries in Ubuntu

Alex Cohn alexcohn at netvision.net.il
Tue Jun 14 20:14:53 CEST 2011


 Do you add -lavformat to your compilation command? The 'depricated'
warning shows that the header paths are set correctly, but 'undefined
reference' comes from linker, which could not find the library.

Alex

On Tuesday, June 14, 2011, JunHorng <junhorng at gmail.com> wrote:
> Thank you for your reply. I have done what you said, but the error message:
> undefined reference to `avcodec_decode_video2'is still shown. Besides, a warning message:
>
> ‘dump_format’ is deprecated
>
> is also shown. Would you please advice me how you compile FFmpeg in    the Ubuntu system?
> Best regards,
> Jun-Horng Chen
>
>
> 2011/6/13 Gustav González <xtingray at gmail.com>
>
> Did you try?:
>
> % sudo apt-get install libavcodec-dev libavcodec52
> % sudo apt-get install libavformat-dev libavformat52
> % sudo apt-get install libavutil-dev libavutil50
>
> 2011/6/12 JunHorng <junhorng at gmail.com>:
>> Hello,
>> Following the
>> instruction: http://ubuntuforums.org/showpost.php?p=9868359&postcount=1289 ,
>> I have installed the   FFmpeg libraries in my Ubuntu system. At the
>> beginning, it seems to be fine. When I tested the libraries with the example
>> program : "libavcodec/api-example.c", an error message :
>> undefined reference to `avcodec_decode_video2'
>> will be shown in the project building process.
>> Does that mean what I installed is an old version of FFmpeg?
>> I am appreciated for any help.
>> JunHorng
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>>
>
>
>
> --
> ============================
>   Gustav Gonzalez
>   xtingray at gmail.com
> ============================
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>
>


More information about the Libav-user mailing list