[Libav-user] Beginner c++ compiling error

jan hölscher jan.hoelscher at codergrid.de
Thu Oct 6 15:16:31 CEST 2011


you need to link against the alsa sound libraries,

i did not know it exactly but i think it was the libasound library, please
try it with the "-lasound" flag to the linker.


Regards,
Jan

2011/10/6 mounir younes <mounir.younes at gmail.com>

> tried your command with g++ but still having the same exception. Can
> someone please write a tutorial on how to write the "hello world" in ffmpeg
> and how to compile it?
>
>
> On Mon, Oct 3, 2011 at 9:11 PM, Jonathan Arnold <jdarnold at buddydog.org>wrote:
>
>> On Mon, 3 Oct 2011 11:36:23 +0300
>> mounir younes <mounir.younes at gmail.com> wrote:
>>
>> > This is my code: (i got it from the internet, and modified it)
>> > ------------------------
>>
>> And what command line do you use to compile it? Just looks like you are
>> forgetting some libraries. Here is my simple compile command:
>>
>> gcc  -o tutorial01 tutorial01.c -lavutil -lavformat -lavcodec -lz -lavutil
>> -lswscale -lm
>>
>>
>> --
>> Jonathan Arnold        Webstream: http://hieronymus.soup.io
>>
>> Talent wins games, but team work and intelligence wins championships.
>> Michael Jordan
>>
>> _______________________________________________
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
>> http://ffmpeg.org/mailman/listinfo/libav-user
>>
>
>
> _______________________________________________
> Libav-user mailing list
> Libav-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/libav-user
>
>


-- 
*Media Encoding Cluster <http://codergrid.de>, *
*the first Open Source Cluster Encoding Solution *
*for distributed Media Encoding.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20111006/2c3d404f/attachment.html>


More information about the Libav-user mailing list