<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 29, 2015 at 8:25 AM, Moritz Lennert <span dir="ltr"><<a href="mailto:mlennert@club.worldonline.be" target="_blank">mlennert@club.worldonline.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 29/09/15 11:09, Paulo van Breugel wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Installing v.kriging (on GRASS dev, Linux) addons fails with the following:<br>
<br>
GRASS 7.1.svn (latlon):~ > g.extension v.kriging<br>
WARNING: Extension <v.kriging> already installed. Re-installing...<br>
Fetching <v.kriging> from GRASS GIS Addons repository (be patient)...<br>
Compiling...<br>
In file included from geostat.c:1:0:<br>
local_proto.h:72:3: error: unknown type name ‘mat_struct’<br>
    mat_struct *trend;<br>
    ^<br>
local_proto.h:113:3: error: unknown type name ‘mat_struct’<br>
    mat_struct *gamma;    // experimental variogram matrix<br>
    ^<br>
local_proto.h:124:3: error: unknown type name ‘mat_struct’<br>
    mat_struct *A;           // plan matrix<br>
    ^<br>
local_proto.h:125:3: error: unknown type name ‘mat_struct’<br>
    mat_struct *T;           // coefficients of theoretical variogram<br>
    ^<br>
local_proto.h:126:3: error: unknown type name ‘mat_struct’<br>
    mat_struct *GM;          // GM = theor_var(dist: input, output points)<br>
    ^<br>
local_proto.h:218:1: error: unknown type name ‘mat_struct’<br>
  mat_struct *LSM(mat_struct *, mat_struct *);<br>
  ^<br>
local_proto.h:218:17: error: unknown type name ‘mat_struct’<br>
  mat_struct *LSM(mat_struct *, mat_struct *);<br>
                  ^<br>
local_proto.h:218:31: error: unknown type name ‘mat_struct’<br>
  mat_struct *LSM(mat_struct *, mat_struct *);<br>
                                ^<br>
local_proto.h:219:1: error: unknown type name ‘mat_struct’<br>
  mat_struct *nonlin_LMS(int , double *, double *);<br>
  ^<br>
local_proto.h:226:24: error: unknown type name ‘mat_struct’<br>
  double bivar_sill(int, mat_struct *);<br>
                         ^<br>
local_proto.h:245:68: error: unknown type name ‘mat_struct’<br>
  void write2file_variogram_E(struct int_par *, struct parameters *,<br>
mat_struct *);<br>
                                                                     ^<br>
local_proto.h:250:1: error: unknown type name ‘mat_struct’<br>
  mat_struct *set_up_G(struct points *, struct parameters *, struct<br>
write *);<br>
  ^<br>
local_proto.h:251:1: error: unknown type name ‘mat_struct’<br>
  mat_struct *set_up_g0(struct int_par *, struct points *, struct ilist<br>
*, double *, struct parameters *);<br>
  ^<br>
local_proto.h:252:1: error: unknown type name ‘mat_struct’<br>
  mat_struct *submatrix(struct ilist *, mat_struct *, struct write *);<br>
  ^<br>
local_proto.h:252:39: error: unknown type name ‘mat_struct’<br>
  mat_struct *submatrix(struct ilist *, mat_struct *, struct write *);<br>
                                        ^<br>
local_proto.h:253:49: error: unknown type name ‘mat_struct’<br>
  double result(struct points *, struct ilist *,  mat_struct *);<br>
                                                  ^<br>
geostat.c: In function ‘E_variogram’:<br>
geostat.c:101:5: error: unknown type name ‘mat_struct’<br>
      mat_struct *gamma_M;        // gamma matrix (hz, vert or bivar)<br>
      ^<br>
geostat.c:102:5: error: unknown type name ‘mat_struct’<br>
      mat_struct *c_M;            // matrix of # of dissimilarities<br>
      ^<br>
geostat.c:145:9: warning: assignment makes pointer from integer without<br>
a cast [enabled by default]<br>
      c_M = G_matrix_init(nrows, ncols, nrows);   // temporal matrix of<br>
counts<br>
          ^<br>
geostat.c:146:13: warning: assignment makes pointer from integer without<br>
a cast [enabled by default]<br>
      gamma_M = G_matrix_init(nrows, ncols, nrows);       // temporal<br>
matrix (vector) of gammas<br>
              ^<br>
geostat.c:158:13: error: request for member ‘vals’ in something not a<br>
structure or union<br>
      c = &c_M->vals[0];<br>
              ^<br>
geostat.c:159:21: error: request for member ‘vals’ in something not a<br>
structure or union<br>
      gamma = &gamma_M->vals[0];<br>
                      ^<br>
geostat.c:308:21: warning: assignment makes pointer from integer without<br>
a cast [enabled by default]<br>
      var_pars->gamma = G_matrix_copy(gamma_M);<br>
                      ^<br>
geostat.c: In function ‘ordinary_kriging’:<br>
geostat.c:516:5: error: unknown type name ‘mat_struct’<br>
      mat_struct *GM;<br>
      ^<br>
geostat.c:517:5: error: unknown type name ‘mat_struct’<br>
      mat_struct *GM_sub;         // submatrix of selected points<br>
      ^<br>
geostat.c:518:5: error: unknown type name ‘mat_struct’<br>
      mat_struct *GM_Inv;         // inverted GM (GM_sub) matrix<br>
      ^<br>
geostat.c:519:5: error: unknown type name ‘mat_struct’<br>
      mat_struct *g0;             // diffences between known and unknown<br>
values = theor_var(dist)<br>
      ^<br>
geostat.c:520:5: error: unknown type name ‘mat_struct’<br>
      mat_struct *w0;             // weights of values located on the<br>
input points<br>
      ^<br>
geostat.c:545:17: warning: assignment makes pointer from integer without<br>
a cast [enabled by default]<br>
      var_par->GM = G_matrix_copy(GM);    // copy matrix because of<br>
cross validation<br>
                  ^<br>
geostat.c:589:28: warning: assignment makes pointer from integer without<br>
a cast [enabled by default]<br>
                      GM_sub = submatrix(list, GM, report);       //<br>
make submatrix for selected points<br>
                             ^<br>
geostat.c:590:28: warning: assignment makes pointer from integer without<br>
a cast [enabled by default]<br>
                      GM_Inv = G_matrix_inverse(GM_sub);  // invert<br>
submatrix<br>
                             ^<br>
geostat.c:594:24: warning: assignment makes pointer from integer without<br>
a cast [enabled by default]<br>
                      w0 = G_matrix_product(GM_Inv, g0);  // Vector of<br>
weights, condition SUM(w) = 1 in last row<br>
                         ^<br>
make: *** [OBJ.x86_64-unknown-linux-gnu/geostat.o] Error 1<br>
ERROR: Compilation failed, sorry. Please check above error messages.<br>
</blockquote>
<br></div></div>
mat_struct is defined in include/la.h. I'm not 100% sure, but IIUC, you might have to compile GRASS with blas/lapack support for this to work.<br></blockquote><div><br></div><div>Yes, --with-blas and --with-lapack work for me.</div><div><br></div><div>Anna </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Moritz<br>
<br>
<br>
<br>
Moritz<br>
_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br>
</blockquote></div><br></div></div>