[GRASS-dev] [grass-code I][518] Problem compiling with ffmpeg 6.2.3RC1

Glynn Clements glynn at gclements.plus.com
Sun Oct 21 15:31:27 EDT 2007

grass-dev at grass.itc.it wrote:

> code I item #518, was opened at 2007-10-21 22:05
> Status: Open
> Priority: 3
> Submitted By: M�ris Nartišs (marisn)
> Assigned to: Nobody (None)
> Summary: Problem compiling with ffmpeg 6.2.3RC1 
> Issue type: None
> Issue status: None
> GRASS version: 6.2.2
> GRASS component: build
> Operating system: Linux
> Operating system version: 
> GRASS CVS checkout date, if applies (YYMMDD): 
> Initial Comment:
> gcc version 4.2.1
> ffmpeg-0.4.9_p20070616-r1
> gcc -I/home/ddd/soft/grass-6.2.3RC1/dist.i686-pc-linux-gnu/include  -g -O2    -fPIC    -DPACKAGE=\""grasslibs"\" -I/usr/include      -DPACKAGE=\""grasslibs"\"    -I/usr/include/ffmpeg/ -I/home/ddd/soft/grass-6.2.3RC1/dist.i686-pc-linux-gnu/include \
>                 -o OBJ.i686-pc-linux-gnu/gsd_img_ppm.o -c gsd_img_ppm.c
> In file included from gsd_img_ppm.c:19:
> /usr/include/ffmpeg/avcodec.h:2252: warning: �ImgReSampleContext� is deprecated
> /usr/include/ffmpeg/avcodec.h:2258: warning: �ImgReSampleContext� is deprecated
> gsd_img_ppm.c: In function �gsd_init_mpeg�:
> gsd_img_ppm.c:122: error: �mpeg1video_encoder� undeclared (first use in this function)
> gsd_img_ppm.c:122: error: (Each undeclared identifier is reported only once
> gsd_img_ppm.c:122: error: for each function it appears in.)
> make: *** [OBJ.i686-pc-linux-gnu/gsd_img_ppm.o] Error 1

Known problem. The most recent versions of FFMPEG don't work with the
6.2.x code. It's fixed in 6.3-CVS; it's probably safe to back-port
gsd_img_{ppm,mpeg}.c (you need both files).

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list