On Mon, 02 Mar 2009 21:40:17 -0500, Jaikishan <[email protected]> wrote:
> configuration: --enable-gpl --enable-postproc --enable-pthreads  
> --enable-libfaac
> --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264
> --enable-libxvid
[...]
> The command to execute is :
> gcc -o tutorial01 tutorial01.c -lavutil -lavformat -lavcodec -lz  
> -lavutil -lm
>
> /usr/local/lib/libavcodec.a(libfaac.o): In function `Faac_encode_frame':
> /home/jaikishan/x264/ffmpeg/libavcodec/libfaac.c:128: undefined  
> reference to
> `faacEncEncode'
[...]
> I understand that somehow it is not able to link the library but I dont  
> understand whats going wrong.

In the configure line, you enabled other libraries.  Libav acts as a  
wrapper around those libraries in order to make it appear that libav  
supports those formats.

So, if you built libav with libfaac, you need to add -lfaac to the link  
list.

BTW- check out the "pkg-config" tool.  It saves a lot of this hassle.


-- 
Michael Conrad
IntelliTree Solutions llc.
513-552-6362
[email protected]
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to