[GRASS-dev] cvs compilation problem - nviz?

Volker Wichmann wichmann at laserdata.at
Mon Jul 2 16:09:46 EDT 2007


Glynn Clements wrote:
> Volker Wichmann wrote:
>
>   
>> almost similar to a recent post of Helena, I have problems compiling cvs 
>> on a fedora 7 / NVIDIA machine. But I get another error:
>> Errors in:
>> /usr/local/src/grass-cvs/grass6/lib/ogsf
>> /usr/local/src/grass-cvs/grass6/visualization/nviz
>>
>> Changing to /lib/ogsf and running make:
>> gcc -I/usr/local/src/grass-cvs/grass6/dist.i686-pc-linux-gnu/include -g 
>> -O2 -fPIC -DPACKAGE=\""grasslibs"\" -I/usr/local/include 
>> -DPACKAGE=\""grasslibs"\" -I/usr/local/include/ffmpeg 
>> -I/usr/local/src/grass-cvs/grass6/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:20:
>> /usr/local/include/ffmpeg/avcodec.h:2252: warning: "ImgReSampleContext" is deprecated
>> /usr/local/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
>>
>> As far as I can tell ffmpeg is installed correctly (mpeg1video_encoder 
>> is defined in config.h, no errors) ... any tip?
>>     
>
> It should be declared in avcodec.h:
>
> 	extern AVCodec mpeg1video_encoder;
>   
I checked out ffmpeg svn and in avcodec.h there is just

extern AVCodec *first_avcodec;
> I don't have a config.h in the ffmpeg include directory, and
> gsd_image_ppm.c doesn't #include it (in fact, if it did have
> "#include <config.h>", there's no guarantee that it would be ffmpeg's
> config.h which was included; config.h is a rather common name).
>
> It appears that your version of ffmpeg isn't compatible with the OGSF
> library; I can only suggest removing --with-ffmpeg from your configure
> command.
>
>   
After removing --with-ffmpeg compilation is fine.

I'm not really satisfied with that solution, but at the moment it seems 
I have to live with it and move on.

Thanks!
Volker




More information about the grass-dev mailing list