After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645712 - about build error of gst-ffmpeg-0.10.11.1+git20110325
about build error of gst-ffmpeg-0.10.11.1+git20110325
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-libav
0.10.11
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2011-03-26 05:35 UTC by brofkims
Modified: 2011-03-27 04:24 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description brofkims 2011-03-26 05:35:04 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
Comment 1 brofkims 2011-03-26 17:28:18 UTC
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.
Comment 2 Olivier Crête 2011-03-27 02:55:50 UTC
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).
Comment 3 brofkims 2011-03-27 03:49:59 UTC
I am aware of it, but latest Debian and Ubuntu use the system version of ffmpeg(Ubuntu changed to traditional ffmpeg to libav lately). :-(
Comment 4 Olivier Crête 2011-03-27 04:24:09 UTC
But they pick the right version (and keep the pieces if they don't)