GNOME Bugzilla – Bug 645712
about build error of gst-ffmpeg-0.10.11.1+git20110325
Last modified: 2011-03-27 04:24:09 UTC
1. On Ubuntu 11.04 beta, I failed to build gst-ffmpeg-0.10.11.1+git20110325 due to following erros undeclared CODEC_ID_LAGARITH and CODEC_ID_ADPCM_G722 . Error messages follow at the end of this report. 2. I inspected system header file '/usr/include/libavcodec/avcodec.h' of libavcodec-0.6.2 of libav, but there was no such thing. Should I use traditional ffmpeg? 3. Error messages: ... libtool: compile: gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -I../../gst-libs -I../../gst-libs -pthread -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gstreamer-0.10 -I/usr/include/libxml2 -Wall -Wdeclaration-after-statement -Wvla -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition -Wcast-align -Winit-self -Wmissing-include-dirs -Waddress -Waggregate-return -Wno-multichar -Wnested-externs -Werror -DGST_DISABLE_DEPRECATED -g -O2 -g -O2 -Wno-error -c gstffmpegcodecmap.c -fPIC -DPIC -o .libs/libgstffmpeg_la-gstffmpegcodecmap.o gstffmpegcodecmap.c: In function ‘gst_ffmpeg_get_palette’: gstffmpegcodecmap.c:53:7: warning: ‘AVPaletteControl’ is deprecated (declared at /usr/include/libavcodec/avcodec.h:2808) gstffmpegcodecmap.c: In function ‘gst_ffmpeg_codecid_to_caps’: gstffmpegcodecmap.c:1190:10: error: ‘CODEC_ID_LAGARITH’ undeclared (first use in this function) gstffmpegcodecmap.c:1190:10: note: each undeclared identifier is reported only once for each function it appears in gstffmpegcodecmap.c:1297:10: error: ‘CODEC_ID_ADPCM_G722’ undeclared (first use in this function) make[4]: *** [libgstffmpeg_la-gstffmpegcodecmap.lo] error 1 make[4]: Leaving directory `/home/brofkims/build/gstreamer0.10-ffmpeg-0.10.11.1+git20110324/ext/ffmpeg' make[3]: *** [all-recursive] error 1 make[3]: Leaving directory `/home/brofkims/build/gstreamer0.10-ffmpeg-0.10.11.1+git20110324/ext' make[2]: *** [all-recursive] error 1 make[2]: Leaving directory `/home/brofkims/build/gstreamer0.10-ffmpeg-0.10.11.1+git20110324' make[1]: *** [all] error 2 make[1]: Leaving directory `/home/brofkims/build/gstreamer0.10-ffmpeg-0.10.11.1+git20110324' make: *** [debian/stamp-makefile-build] error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2
After I wrote this I found there exist such CODEC_ID in libavcodec/avcodec.h of svn or git repository of both traditional ffmpeg and libav. It is somewhat difficult thing to select, but I am going to direct to git source of libav according to Ubuntu which I am using.
You should not use the system version of ffmpeg .. but the version bundled in gst-ffmpeg (it will be checked out out when you do autogen).
I am aware of it, but latest Debian and Ubuntu use the system version of ffmpeg(Ubuntu changed to traditional ffmpeg to libav lately). :-(
But they pick the right version (and keep the pieces if they don't)