[GRASS-user] Grass7 r.in.lidar compile error

Daniel Victoria daniel.victoria at gmail.com
Mon Jun 20 19:51:52 EDT 2011


Hi all,

I just checked out the latest grass 7 from svn (r 46749) and tried to
compile with the liblas option but I'm seeing the following error in
r.in.lidar. It says I'm missing ogr_srs_api.h.

I'm running Ubuntu 9.10 (I know, very old distro)

Thanks
Daniel

----------------------------------------------------------
daniel at xadrez:~/grass/grass_trunk/raster/r.in.lidar$ make
gcc    -I/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/include
-I/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/include
-D_FILE_OFFSET_BITS=64  -DPACKAGE=\""grassmods"\"
-I/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/include
-I/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/include -o
OBJ.i686-pc-linux-gnu/main.o -c main.c
In file included from main.c:26:
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/include/grass/gprojects.h:23:29:
error: ogr_srs_api.h: No such file or directory
In file included from main.c:26:
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/include/grass/gprojects.h:84:
error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before
‘GPJ_grass_to_osr’
/home/daniel/grass/grass_trunk/dist.i686-pc-linux-gnu/include/grass/gprojects.h:88:
error: expected declaration specifiers or ‘...’ before
‘OGRSpatialReferenceH’
main.c: In function ‘main’:
main.c:281: warning: format not a string literal and no format arguments
main.c:296: warning: format not a string literal and no format arguments
main.c:376: warning: format not a string literal and no format arguments
main.c:379: warning: format not a string literal and no format arguments
main.c:391: warning: format not a string literal and no format arguments
main.c:485: warning: format not a string literal and no format arguments
main.c:497: warning: format not a string literal and no format arguments
main.c:560: warning: format not a string literal and no format arguments
main.c:579: warning: format not a string literal and no format arguments
main.c:596: warning: format not a string literal and no format arguments
main.c:757: warning: format not a string literal and no format arguments
main.c:1104: warning: format not a string literal and no format arguments
main.c: In function ‘scan_bounds’:
main.c:1127: warning: format not a string literal and no format arguments
main.c:1178: warning: format not a string literal and no format arguments
make: *** [OBJ.i686-pc-linux-gnu/main.o] Error 1
daniel at xadrez:~/grass/grass_trunk/raster/r.in.lidar$


More information about the grass-user mailing list