Hello, I am working on a linux machine installed the ffmpeg and x264 without any error. To make sure, I execute ffmpeg from command line and I get the following message:
FFmpeg version SVN-r17737, Copyright (c) 2000-2009 Fabrice Bellard, et al. configuration: --enable-gpl --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libtheora --enable-libx264 --enable-libxvid libavutil 49.15. 0 / 49.15. 0 libavcodec 52.20. 0 / 52.20. 0 libavformat 52.31. 0 / 52.31. 0 libavdevice 52. 1. 0 / 52. 1. 0 libpostproc 51. 2. 0 / 51. 2. 0 built on Mar 2 2009 16:18:47, gcc: 4.3.2 I am trying to compile the C code tutorial01.c located at http://www.dranger.com/ffmpeg/tutorial01.html Before executing this code, I change the code to include the header file as: #include <libavcodec/avcodec.h> #include <libavformat/avformat.h> 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' collect2: ld returned 1 exit status But I keep on getting the above errors. I am trying this for quite sometime now but I am still not able to find any solution. I tried all the solution for example, wrapping the library in extern "C" etc. Any help will be very much appreciated. I understand that somehow it is not able to link the library but I dont understand whats going wrong. -- Thanks, Jaikishan _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
