Michael Conrad <mcon...@...> writes: > > On Mon, 02 Mar 2009 21:40:17 -0500, Jaikishan <jai....@...> 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. >
When I tried including -lfaac, it says cannot find -lfaac /usr/bin/ld: cannot find -lfacc collect2: ld returned 1 exit status I am sorry but this is my first time using this library. To install ffmpeg on my ubuntu, I took help of: http://ubuntuforums.org/showthread.php?t=786095 _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
