<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>

<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<div dir="ltr"><div><br></div><div>Hi all,</div><div><br></div><div>I am really struggling to to use the r.geomorphon (or indeed any) add-on in GRASS 7 (it's not available in 6) and I have spent a great many hours trying to get this working before seeking advice here. Any<font size="3"> help would be hugely appreciated. I really am a GRASS novice so I may well have missed something obvious, despite trying to be thorough. This is also my first post here so I hope it's up to scratch.</font></div><div><br></div><div>First, system Info:                                                                     </div><div>GRASS version: 7.0.0beta3                                                       </div><div>GRASS SVN Revision: 61541                                                       </div><div>Build Date: 2014-09-08                                                          </div><div>Build Platform: x86_64-unknown-linux-gnu                                        </div><div>GDAL/OGR: 1.11.0                                                                </div><div>PROJ.4: 4.8.0                                                                   </div><div>GEOS: 3.4.2                                                                     </div><div>SQLite: 3.8.2                                                                   </div><div>Python: 2.7.6                                                                   </div><div>wxPython: 2.8.12.1                                                              </div><div>Platform: Linux-3.13.0-35-generic-x86_64-with-Ubuntu-14.04-trusty               </div><div>   <span style="font-size: 12pt;">         </span></div><div>How I got to this stage:</div><div>As you can see from System Info, I compiled GRASS GIS 7.0.0beta3 from source code via "svn checkout http://svn.osgeo.org/grass/grass/tags/release_20140806_grass_7_0_0beta3", but I had also tried it via "svn co https://svn.osgeo.org/grass/grass/trunk" before, with the same negative result. I cannot use the stable version of GRASS GIS 7 (I tried that first) because of the issue with g.extension, which is fixed in these later versions (see <a href="http://lists.osgeo.org/pipermail/grass-user/2014-June/070480.html" target="_blank">http://lists.osgeo.org/pipermail/grass-user/2014-June/070480.html</a>). I've compiled and installed GRASS 7 using the instructions from the OSGeo Ubuntu Wiki page (<a href="http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS" target="_blank">http://grasswiki.osgeo.org/wiki/Compile_and_Install_Ubuntu#GRASS_GIS</a>) and have been sure run the commands under 'Dependencies'.</div><div><br></div><div>A post on this issue appears here - <a href="http://lists.osgeo.org/pipermail/grass-user/2013-February/067241.html" target="_blank" style="font-size: 12pt;">http://lists.osgeo.org/pipermail/grass-user/2013-February/067241.html</a></div><div><br></div><div>The compilation set-up that I've used is as follows (this does not produce any errors):</div><div><div><span style="font-size: 12pt;">CFLAGS="-O2 -Wall" LDFLAGS="-s" ./configure \</span></div><div>--enable-largefile=yes \</div><div>--with-nls \</div><div>--with-cxx \</div><div>--with-python=yes \</div><div>--with-wxwidgets \</div><div>--with-cairo \</div><div>--with-freetype=yes \</div><div>--with-freetype-includes="/usr/include/freetype2/" \</div><div>--with-opengl-libs=/usr/include/GL \</div><div>--with-postgres=yes \</div><div>--with-postgres-includes="/usr/include/postgresql" \</div><div>--with-sqlite=yes \</div><div>--with-mysql=yes \</div><div>--with-mysql-includes="/usr/include/mysql" \</div><div>--with-odbc=no \</div><div>--with-geos=yes</div></div><div><br></div><div>And here's the summary once compiled (does anything stand out as being missing?):</div><div><div>  BLAS support:                no</div><div>  C++ support:                  yes</div><div>  Cairo support:                yes</div><div>  DWG support:                no</div><div>  FFMPEG support:          no</div><div>  FFTW support:               yes</div><div>  FreeType support:         yes</div><div>  GDAL support:               yes</div><div>  GEOS support:               yes</div><div>  LAPACK support:           no</div><div>  Large File support (LFS):   yes</div><div>  libLAS support:              no</div><div>  MySQL support:            yes</div><div>  NetCDF support:           no</div><div>  NLS support:                 yes</div><div>  ODBC support:              yes</div><div>  OGR support:                yes</div><div>  OpenCL support:           no</div><div>  OpenGL support:           yes</div><div>  OpenMP support:           no</div><div>  PNG support:                 yes</div><div>  POSIX thread support:  no</div><div>  PostgreSQL support:    yes</div><div>  Readline support:          no</div><div>  Regex support:              yes</div><div>  SQLite support:             yes</div><div>  TIFF support:               yes</div><div>  wxWidgets support:     yes</div><div>  X11 support:                yes</div></div><div><br></div><div>Finally, here's the output upon attempting to install r.geomorphon via g.extension (g.extension extension=r.geomorphon svnurl=http://svn.osgeo.org/grass/grass-addons/grass7). I've also put another couple of error-filled outputs from other add-ons below. Many thanks in advance, Joe</div><div><br></div><div><div><span style="font-size: 12pt;">g.extension extension=r.geomorphon svnurl=http://svn.osgeo.org/grass/grass-addons/grass7</span></div><div>Fetching <r.geomorphon> from GRASS-Addons SVN (be patient)...</div><div>Compiling...</div><div>geom.c: In function ‘ternary_rotate’:</div><div>geom.c:22:9: warning: unused variable ‘res’ [-Wunused-</div><div>variable]</div><div>     int res;</div><div>         ^</div><div>geom.c: At top level:</div><div>geom.c:2:15: warning: ‘dirs’ defined but not used</div><div>[-Wunused-variable]</div><div> static double dirs[8] = { 0.7854, 0., 5.4978, 4.7124,</div><div>3.9270, 3.1416, 2.3562, 1.5708 }; /* radians */</div><div>               ^</div><div>geom.c: In function ‘shape’:</div><div>geom.c:252:26: warning: ‘rymax’ may be used</div><div>uninitialized in this function [-Wmaybe-uninitialized]</div><div>  rymax = ry > rymax ? ry : rymax;</div><div>                          ^</div><div>geom.c:251:26: warning: ‘rymin’ may be used</div><div>uninitialized in this function [-Wmaybe-uninitialized]</div><div>  rymin = ry < rymin ? ry : rymin;</div><div>                          ^</div><div>geom.c:250:26: warning: ‘rxmax’ may be used</div><div>uninitialized in this function [-Wmaybe-uninitialized]</div><div>  rxmax = rx > rxmax ? rx : rxmax;</div><div>                          ^</div><div>geom.c:249:26: warning: ‘rxmin’ may be used</div><div>uninitialized in this function [-Wmaybe-uninitialized]</div><div>  rxmin = rx < rxmin ? rx : rxmin;</div><div>                          ^</div><div>geom.c:232:15: warning: ‘avg_x_square’ may be used</div><div>uninitialized in this function [-Wmaybe-uninitialized]</div><div>  avg_x_square += pattern->x[i] * pattern->x[i];</div><div>               ^</div><div>main.c: In function ‘main’:</div><div>main.c:312:20: warning: unused variable ‘formC’</div><div>[-Wunused-variable]</div><div>  int formA, formB, formC;</div><div>                    ^</div><div>main.c:312:13: warning: unused variable ‘formB’</div><div>[-Wunused-variable]</div><div>  int formA, formB, formC;</div><div>             ^</div><div>main.c:312:6: warning: unused variable ‘formA’</div><div>[-Wunused-variable]</div><div>  int formA, formB, formC;</div><div>      ^</div><div>main.c:93:28: warning: unused variable ‘radius’</div><div>[-Wunused-variable]</div><div>     int row, cur_row, col, radius;</div><div>                            ^</div><div>main.c:91:15: warning: unused variable ‘n’ [-Wunused-</div><div>variable]</div><div>     int i, j, n;</div><div>               ^</div><div>main.c:91:12: warning: unused variable ‘j’ [-Wunused-</div><div>variable]</div><div>     int i, j, n;</div><div>            ^</div><div>main.c:553:1: warning: control reaches end of non-void</div><div>function [-Wreturn-type]</div><div> }</div><div> ^</div><div>memory.c: In function ‘open_map’:</div><div>memory.c:10:9: warning: unused variable ‘bufsize’</div><div>[-Wunused-variable]</div><div>     int bufsize;</div><div>         ^</div><div>memory.c:7:9: warning: unused variable ‘fd’ [-Wunused-</div><div>variable]</div><div>     int fd;</div><div>         ^</div><div>memory.c: In function ‘shift_buffers’:</div><div>memory.c:75:39: warning: unused variable ‘aspect_tmp’</div><div>[-Wunused-variable]</div><div>     FCELL *tmp_elev_buf, *slope_tmp, *aspect_tmp;</div><div>                                       ^</div><div>memory.c:75:27: warning: unused variable ‘slope_tmp’</div><div>[-Wunused-variable]</div><div>     FCELL *tmp_elev_buf, *slope_tmp, *aspect_tmp;</div><div>                           ^</div><div>memory.c: In function ‘write_contrast_colors’:</div><div>memory.c:131:23: warning: unused variable ‘cats’</div><div>[-Wunused-variable]</div><div>     struct Categories cats;</div><div>                       ^</div><div>multires.c: In function ‘pattern_matching’:</div><div>multires.c:23:29: warning: suggest parentheses around</div><div>comparison in operand of ‘&’ [-Wparentheses]</div><div>     return (result & source == source) ? 1 : 0;</div><div>                             ^</div><div>pattern.c: In function ‘calc_pattern’:</div><div>pattern.c:134:24: warning: ‘nadir_distance’ may be used</div><div>uninitialized in this function [-Wmaybe-uninitialized]</div><div>   pattern->distance[i] = nadir_distance;</div><div>                        ^</div><div>pattern.c:128:24: warning: ‘zenith_distance’ may be used</div><div>uninitialized in this function [-Wmaybe-uninitialized]</div><div>   pattern->distance[i] = zenith_distance;</div><div>                        ^</div><div>pattern.c:133:25: warning: ‘nadir_height’ may be used</div><div>uninitialized in this function [-Wmaybe-uninitialized]</div><div>   pattern->elevation[i] = nadir_height; //ZMIANA!</div><div>                         ^</div><div>pattern.c:127:25: warning: ‘zenith_height’ may be used</div><div>uninitialized in this function [-Wmaybe-uninitialized]</div><div>   pattern->elevation[i] = zenith_height; //ZMIANA!</div><div>                         ^</div><div>Installing...</div><div>Updating metadata file...</div><div>WARNING: Unable to parse 'http://grass.osgeo.org/addons/grass7/modules.xml'. Metadata file not updated.</div><div>Installation of <r.geomorphon> successfully finished</div><div><br></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">-- END of OUTPUT 1 --</span><span style="font-size: 12pt;">        </span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;">I also get errors when attempting to install other add-ons, e.g. r.bioclim:</span></div><div><span style="font-size: 12pt;"><br></span></div><div>g.extension extension=r.bioclim svnurl=http://svn.osgeo.org/grass/grass-addons/grass7</div><div>Fetching <r.bioclim> from GRASS-Addons SVN (be patient)...</div><div>Compiling...</div><div>/bin/sh: 1: cannot create /usr/local/grass-7.0.0beta3/locale</div><div>/scriptstrings/r.bioclim_to_translate.c: Directory</div><div>nonexistent</div><div>make: [/usr/local/grass-7.0.0beta3/locale/scriptstrings/r.bi</div><div>oclim_to_translate.c] Error 2 (ignored)</div><div>Installing...</div><div>Updating metadata file...</div><div>WARNING: Unable to parse 'http://grass.osgeo.org/addons/grass7/modules.xml'. Metadata file not updated.</div><div>Installation of <r.bioclim> successfully finished</div><div><br></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;"><br></span></div><div><span style="font-size: 12pt;"> </span><span style="font-size: 12pt;">-- END of OUTPUT 2 --</span><span style="font-size: 12pt;">        </span></div><div><br></div><div>e.g. r.stream.basins:</div><div><br></div><div>Fetching <r.stream.basins> from GRASS-Addons SVN (be patient)...</div><div>Compiling...</div><div>io.c: In function ‘ram_write_map’:</div><div>io.c:221:10: warning: ‘c’ may be used uninitialized in</div><div>this function [-Wmaybe-uninitialized]</div><div>   G_debug(1, "ram_null:Cannot convert to null at: %d %d",</div><div>r, c);</div><div>          ^</div><div>io.c: In function ‘seg_write_map’:</div><div>io.c:531:12: warning: ‘c’ may be used uninitialized in</div><div>this function [-Wmaybe-uninitialized]</div><div>   G_warning(_("Unable to convert to null at: %d %d"), r,</div><div>            ^</div><div>Installing...</div><div>Updating metadata file...</div><div>WARNING: Unable to parse 'http://grass.osgeo.org/addons/grass7/modules.xml'. Metadata file not updated.</div><div>Installation of <r.stream.basins> successfully finished</div><div><br></div><div><div><span style="font-size: 12pt;"> </span><span style="font-size: 12pt;">-- END of OUTPUT 3 --</span></div></div><div><span style="font-size: 12pt;"> -</span><span style="font-size: 12pt;">-- END  ---</span></div><div><br></div><div><br><span style="font-size: 12pt;">   </span></div></div><div><br></div></div>
                                          </div></body>
</html>