[GRASS-dev] installing v.kriging addon fails

Markus Neteler neteler at osgeo.org
Thu Oct 1 06:29:34 PDT 2015


On Thu, Oct 1, 2015 at 3:26 PM, Paulo van Breugel
<p.vanbreugel at gmail.com> wrote:
>
>
> On 01-10-15 14:36, Markus Neteler wrote:
>>
>> On Thu, Oct 1, 2015 at 12:51 PM, Paulo van Breugel
>> <p.vanbreugel at gmail.com> wrote:
>>>
>>> I already had GRASS compiled with both blas and lapack, so that doesn't
>>> seem
>>> to help in my case (just tried again, still no luck).
>>
>> You may try to checkout the Addon code from SVN and compile there:
>>
>> cd grass-addons/grass7/vector/v.kriging/
>>
>> make MODULE_TOPDIR=/path/to/grass7
>
>
> Tried it, but no luck:
>
> paulo at paulo-HPZ600:~/Software/spatial/grass-addons/vector/v.kriging$ make
> MODULE_TOPDIR=/usr/local/grass7/grass-7.1.svn
>
> gcc  -g -O2   -I/usr/local/grass7/grass-7.1.svn/include
> -I/usr/local/grass7/grass-7.1.svn/include   -I/usr/local/gdal/include
> -I/usr/include -DPACKAGE=\""grassmods"\"  -I/usr/include/postgresql
> -I/usr/local/gdal/include -I/usr/local/grass7/grass-7.1.svn/include
> -I/usr/local/grass7/grass-7.1.svn/include
> -DRELDIR=\"/home/paulo/Software/spatial/grass-addons/vector/v.kriging\" -o
> OBJ.x86_64-unknown-linux-gnu/geostat.o -c geostat.c
>
>
> In file included from geostat.c:1:0:
>
> local_proto.h:72:3: error: unknown type name ‘mat_struct’
>
>    mat_struct *trend;
>
>    ^

ok - next check:


cd /where/your/grass/is/lib

ldd libgrass_gmath.so | grep 'blas\|lapack'
   liblapack.so.3 => /lib64/liblapack.so.3 (0x00007f640ac4f000)
   libblas.so.3 => /lib64/libblas.so.3 (0x00007f640a9f5000)

Is your GMATH lib properly linked to BLAS/LAPACK? Here it is and it compiles.

Markus


More information about the grass-dev mailing list