[Libav-user] libav - compiling examples error

Peter Steinbach steinbach at scionics.de
Fri Aug 14 14:51:10 CEST 2015


hi Georg,

did you make libavutil.{so,a} available to your environment before 
calling gcc like that? the ffmpeg example directory contains a makefile 
that helps you build the examples alright.

further: what compiler, what OS are you using?

Best,
P


On 08/14/2015 02:38 PM, Georg wrote:
> Hello,
>
> i am a beginner with libav and I try to get used to it with the example
> programs in the doc/ folder.
> My problem is now that I canĀ“t compile this programs without an 'undefined
> reference to..' error.
>
> Here is what I did:
>
> I installed:
> fdk-aac-0.1.4    with   ./configure --prefix=/usr --disable-static
> libav-11.4         with   ./configure --enable-nonfree --enable-gpl
> --disable-shared --enable-static --enable-version3 --enable-libfdk-aac
>
> Then i try to compile the avcodec.c example from the doc/examples/ folder:
> gcc avcodec.c -o example -lavutil -lm -lavcodec
>
> This gives me the Errors:
> .. undefined reference to av_frame_alloc
> .. undefined reference to av_frame_free
>
> Did I forgot to install a needed lib? Or do i need to link to another lib ?
> Thank you for your help
>
> Georg
>
>
>
> --
> View this message in context: http://libav-users.943685.n4.nabble.com/libav-compiling-examples-error-tp4661403.html
> Sent from the libav-users mailing list archive at Nabble.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