Thanks Markus - I'm glad there's a cleaner solution than that dirty hack! I'll test it ASAP,
Pierre 2011/6/22 Markus Metz <[email protected]>: > On Tue, Jun 21, 2011 at 2:28 PM, Daniel Victoria > <[email protected]> wrote: >> Hi Pierre, >> >> I did the same thing you did and Grass compiled without errors. The >> only difference is that I changed the file in grass_trunk/include. >> >> Apparently, everything is working OK. >> > There was a compile flag missing for r.in.lidar, granted that > v.in.lidar was compiling ok without your fix. I have added the missing > compile flag to r.in.lidar, it should now compile without changing any > files in grass_trunk/include. > > Markus M > > >> Cheers >> Daniel >> >> On Tue, Jun 21, 2011 at 4:03 AM, Pierre Roudier >> <[email protected]> wrote: >>> I had the problem a few weeks ago. >>> >>> In file >>> /usr/local/src/grass7-svn/grass_trunk/dist.x86_64-unknown-linux-gnu/include/grass/gprojects.h, >>> couldn't find ogr_srs_api.h >>> >>> I edited >>> /usr/local/src/grass_trunk/dist.x86_64-unknown-linux-gnu/include/grass/gprojects.h >>> and turned ogr_srs_api.h to gdal/ogr_srs_api.h and it did pass the >>> error and compiled properly. >>> >>> Must be a change in the GDAL install. Any better idea welcome - this >>> is really just a hack. >>> >>> Pierre >>> >>> >>> >>> 2011/6/21 Daniel Victoria <[email protected]>: >>>> 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@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@xadrez:~/grass/grass_trunk/raster/r.in.lidar$ >>>> _______________________________________________ >>>> grass-user mailing list >>>> [email protected] >>>> http://lists.osgeo.org/mailman/listinfo/grass-user >>>> >>> >>> >>> >>> -- >>> Scientist >>> Landcare Research, New Zealand >>> >> _______________________________________________ >> grass-user mailing list >> [email protected] >> http://lists.osgeo.org/mailman/listinfo/grass-user >> > -- Scientist Landcare Research, New Zealand _______________________________________________ grass-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-user
