[GRASS-dev] Make Errors: Compile GRASS on Ubuntu

Johannes Radinger JRadinger at gmx.at
Wed Jul 11 05:59:09 PDT 2012


Hi

> Perhaps it is related to this ticket?
> http://trac.osgeo.org/grass/ticket/1423
> 
> You could apply the patch locally and let us know if it helps.
> 

I patched ogsf and make worked without any problems now (all 4 Errors are solved!)...thank you!

> > E: Unable to locate package sip4
> > E: Package 'python-sip4' has no installation candidate
> > E: Unable to locate package python-sip4-dev
> > E: Unable to locate package libpngwriter0-dev

Just a question about the other dependencies. What are they for?
If they are important how should they be installed?

/johannes


-------- Original-Nachricht --------
> Datum: Wed, 11 Jul 2012 14:03:36 +0200
> Von: Markus Neteler <neteler at osgeo.org>
> An: Johannes Radinger <JRadinger at gmx.at>
> CC: GRASS developers list <grass-dev at lists.osgeo.org>
> Betreff: Re: [GRASS-dev] Make Errors: Compile GRASS on Ubuntu

> On Wed, Jul 11, 2012 at 1:34 PM, Johannes Radinger <JRadinger at gmx.at>
> wrote:
> > Hi,
> >
> > after sucessfully compiling, installing and working with GRASS on MacOS
> I am working now as well on Ubuntu (12.04) and want to compile GRASS
> (6.4SVN revision 52364). Hence I tried to follow the corresponding wiki to
> install all the depencies. There are some problems with following dependecnies:
> >
> > E: Unable to locate package sip4
> > E: Package 'python-sip4' has no installation candidate
> > E: Unable to locate package python-sip4-dev
> > E: Unable to locate package libpngwriter0-dev
> 
> (no idea about these...)
> 
> > Anyway I tried to run configure which works:
> >
> > GRASS is now configured for:  i686-pc-linux-gnu
> ...
> >   FFMPEG support:             yes
> ...
> 
> ok
> 
> > Running make ends in some Errors:
> > Errors in:
> > /usr/local/src/grass64_release/lib/ogsf
> ...
> >
> > The first error in detail:
> > radinger at grassgis:/usr/local/src/grass64_release/lib/ogsf$ make
> > gcc -I/usr/local/src/grass64_release/dist.i686-pc-linux-gnu/include  -g 
>   -fPIC   -DPACKAGE=\""grasslibs"\" -I/usr/include/gdal -I/usr/include   
> -DPACKAGE=\""grasslibs"\"    -I/usr/include/libavcodec
> -I/usr/include/libavformat -I/usr/include/libswscale
> -I/usr/local/src/grass64_release/dist.i686-pc-linux-gnu/include -o OBJ.i686-pc-linux-gnu/gsd_img_mpeg.o -c
> gsd_img_mpeg.c
> > gsd_img_mpeg.c: In function ‘add_video_stream’:
> > gsd_img_mpeg.c:61:5: warning: ‘av_new_stream’ is deprecated
> (declared at /usr/include/libavformat/avformat.h:1604) [-Wdeprecated-declarations]
> > gsd_img_mpeg.c:69:21: error: ‘CODEC_TYPE_VIDEO’ undeclared (first
> use in this function)
> > gsd_img_mpeg.c:69:21: note: each undeclared identifier is reported only
> once for each function it appears in
> > gsd_img_mpeg.c:100:5: warning: ‘quality’ is deprecated (declared at
> /usr/include/libavformat/avformat.h:667) [-Wdeprecated-declarations]
> ...
> 
> Perhaps it is related to this ticket?
> http://trac.osgeo.org/grass/ticket/1423
> 
> You could apply the patch locally and let us know if it helps.
> 
> Markus


More information about the grass-dev mailing list