[GRASS-dev] compiling today's grass7 trunk: ogr_srs_api.h: No such file or directory

Moritz Lennert mlennert at club.worldonline.be
Tue Jun 16 09:27:24 EDT 2009


I get the following error running make in swig/python in grass7 of today 
(rev 37908).

In file included from proj_wrap.c:2694:
/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-gnu/include/grass/gprojects.h:23:29: 
error: ogr_srs_api.h: No such file or directory
In file included from proj_wrap.c:2694:
/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-gnu/include/grass/gprojects.h:84: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before 
'GPJ_grass_to_osr'
/home/mlennert/SRC/GRASS/grass_trunk/dist.i486-pc-linux-gnu/include/grass/gprojects.h:88: 
error: expected declaration specifiers or '...' before 
'OGRSpatialReferenceH'
make[1]: *** [OBJ.i486-pc-linux-gnu/proj_wrap.o] Error 1
make[1]: Leaving directory 
`/home/mlennert/SRC/GRASS/grass_trunk/swig/python'
make: *** [default] Error 2

The file ogr_srs_api.h sits in /usr/include/gdal/.

Any ideas of what is wrong here ?

I also get a make errors for a few scripts (v.in.garmin, v.in.gpsbabel, 
v.out.gps, r.li/r.li.setup) but I guess this is linked to the fact that 
they haven't been ported to python, yet ?

Moritz


More information about the grass-dev mailing list