[GRASS-dev] segfault on 'r.stream.extract' - debian armh

epi massimodisasha at gmail.com
Fri Dec 20 16:18:34 PST 2013


Sorry for the delay in answering, i  was out of town.

i tried gdal directly on the grass dataset, but this custom built gdal doesn’t have grass-plugin enabled.

tring to build the grass-pluginn with gdal 1.10.1 and grass7 :

cd gdal/frmts/grass
make dist
tar -zxvf gdal-grass-1.10.1.tar.gz 
cd tar -zxvf gdal-grass-1.10.1
./configure --with-gdal=/home/epi/Envs/env1/bin/gdal-config --with-grass=/home/epi/Envs/env1/grass-7.0.svn/

can’t find the grass libs :


checking for G_asprintf in -lgrass_gis... no
checking for G_putenv in -lgrass_gis.7.0.svn... no
configure: error: --with-grass=/home/epi/Envs/env1/grass-7.0.svn/ requested, but libraries not found!  Perhaps you need to set LD_LIBRARY_PATH to include /home/epi/Envs/env1/grass-7.0.svn//lib?



i also tried :
export LD_LIBRARY_PATH=/home/epi/Envs/env1/grass-7.0.svn/lib:$LD_LIBRARY_PATH

or adding :  
/home/epi/Envs/env1/grass-7.0.svn/lib

in /etc/ld.so.conf.d/grass.conf

but i got the same log, i think to remember tahat gdal-grass is not compatible with grass70.


in any case I just tried gdalinfo on a standard geotiff (i used the the GTiff from the grass dataset) and it works fine :


epi at udoo:~$ which gdalinfo
/home/epi/Envs/env1/bin/gdalinfo
epi at udoo:~$ cd
epi at udoo:~$ gdalinfo basin_50K.tif 
Driver: GTiff/GeoTIFF
Files: basin_50K.tif
Size is 1500, 1350
Coordinate System is:
PROJCS["Lambert Conformal Conic",
    GEOGCS["NAD83",
        DATUM["North_American_Datum_1983",
            SPHEROID["GRS 1980",6378137,298.2572221010002,
                AUTHORITY["EPSG","7019"]],
            AUTHORITY["EPSG","6269"]],
        PRIMEM["Greenwich",0],
        UNIT["degree",0.0174532925199433],
        AUTHORITY["EPSG","4269"]],
    PROJECTION["Lambert_Conformal_Conic_2SP"],
    PARAMETER["standard_parallel_1",36.16666666666666],
    PARAMETER["standard_parallel_2",34.33333333333334],
    PARAMETER["latitude_of_origin",33.75],
    PARAMETER["central_meridian",-79],
    PARAMETER["false_easting",609601.22],
    PARAMETER["false_northing",0],
    UNIT["metre",1,
        AUTHORITY["EPSG","9001"]]]
Origin = (630000.000000000000000,228500.000000000000000)
Pixel Size = (10.000000000000000,-10.000000000000000)
Metadata:
  AREA_OR_POINT=Area
Image Structure Metadata:
  INTERLEAVE=BAND
Corner Coordinates:
Upper Left  (  630000.000,  228500.000) ( 78d46'27.41"W, 35d48'34.59"N)
Lower Left  (  630000.000,  215000.000) ( 78d46'28.63"W, 35d41'16.54"N)
Upper Right (  645000.000,  228500.000) ( 78d36'29.89"W, 35d48'33.08"N)
Lower Right (  645000.000,  215000.000) ( 78d36'32.01"W, 35d41'15.03"N)
Center      (  637500.000,  221750.000) ( 78d41'29.49"W, 35d44'54.91"N)
Band 1 Block=1500x1 Type=Int32, ColorInterp=Gray
  NoData Value=-9999
epi at udoo:~$ 


 
On Dec 10, 2013, at 11:22 AM, Glynn Clements <glynn at gclements.plus.com> wrote:

> 
> epi wrote:
> 
>> thanks for the detailed explanation!
>> 
>> is there something i can try ?  
> 
> Does GDAL itself work? Try running one of its utilities, e.g. 
> gdalinfo.
> 
> -- 
> Glynn Clements <glynn at gclements.plus.com>



More information about the grass-dev mailing list