<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">When I tried to compile r.geomorphon, I got the errors you see below. I just tried g.extensions with similar results.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<pre>$ make MODULE_TOPDIR=/home/bob/dev/gis/grass70<o:p></o:p></pre>
<pre>test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu<o:p></o:p></pre>
<pre>gcc -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/geom.o -c geom.c<o:p></o:p></pre>
<pre>geom.c: In function ‘ternary_rotate’:<o:p></o:p></pre>
<pre>geom.c:21:5: warning: unused variable ‘res’ [-Wunused-variable]<o:p></o:p></pre>
<pre>geom.c: In function ‘radial2cartesian’:<o:p></o:p></pre>
<pre>geom.c:188:21: warning: ordered comparison of pointer with integer zero [-Wextra]<o:p></o:p></pre>
<pre>geom.c: In function ‘extends’:<o:p></o:p></pre>
<pre>geom.c:198:37: warning: unused parameter ‘pattern_size’ [-Wunused-parameter]<o:p></o:p></pre>
<pre>geom.c: At top level:<o:p></o:p></pre>
<pre>geom.c:2:15: warning: ‘dirs’ defined but not used [-Wunused-variable]<o:p></o:p></pre>
<pre>gcc -g -Wall -Werror-implicit-function-declaration -fno-common -Wextra -Wunused -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -D_FILE_OFFSET_BITS=64 -DPACKAGE=\""grassmods"\" -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -I/home/bob/dev/gis/grass70/dist.x86_64-unknown-linux-gnu/include -o OBJ.x86_64-unknown-linux-gnu/main.o -c main.c<o:p></o:p></pre>
<pre>main.c: In function ‘main’:<o:p></o:p></pre>
<pre>main.c:177:2: warning: format not a string literal and no format arguments [-Wformat-security]<o:p></o:p></pre>
<pre>main.c:198:2: warning: format not a string literal and no format arguments [-Wformat-security]<o:p></o:p></pre>
<pre>main.c:207:2: warning: format not a string literal and no format arguments [-Wformat-security]<o:p></o:p></pre>
<pre>main.c:213:2: warning: format not a string literal and no format arguments [-Wformat-security]<o:p></o:p></pre>
<pre>main.c:220:3: warning: format not a string literal and no format arguments [-Wformat-security]<o:p></o:p></pre>
<pre>main.c:234:3: warning: format not a string literal and no format arguments [-Wformat-security]<o:p></o:p></pre>
<pre>main.c:310:8: warning: format not a string literal and no format arguments [-Wformat-security]<o:p></o:p></pre>
<pre>main.c:366:5: error: implicit declaration of function ‘radial2cartesian’ [-Werror=implicit-function-declaration]<o:p></o:p></pre>
<pre>main.c:401:2: error: implicit declaration of function ‘write_contrast_colors’ [-Werror=implicit-function-declaration]<o:p></o:p></pre>
<pre>main.c:268:20: warning: unused variable ‘formC’ [-Wunused-variable]<o:p></o:p></pre>
<pre>main.c:268:13: warning: unused variable ‘formB’ [-Wunused-variable]<o:p></o:p></pre>
<pre>main.c:268:6: warning: unused variable ‘formA’ [-Wunused-variable]<o:p></o:p></pre>
<pre>main.c:76:22: warning: unused variable ‘radius’ [-Wunused-variable]<o:p></o:p></pre>
<pre>main.c:74:11: warning: unused variable ‘n’ [-Wunused-variable]<o:p></o:p></pre>
<pre>main.c:74:8: warning: unused variable ‘j’ [-Wunused-variable]<o:p></o:p></pre>
<pre>main.c:463:1: warning: control reaches end of non-void function [-Wreturn-type]<o:p></o:p></pre>
<pre>cc1: some warnings being treated as errors<o:p></o:p></pre>
<pre>make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Error 1<o:p></o:p></pre>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> grass-user-bounces@lists.osgeo.org [mailto:grass-user-bounces@lists.osgeo.org]
<b>On Behalf Of </b>Robert Andrew Brown<br>
<b>Sent:</b> Tuesday, February 26, 2013 9:21 AM<br>
<b>To:</b> grass-user@lists.osgeo.org<br>
<b>Cc:</b> Phillip Owens<br>
<b>Subject:</b> [GRASS-user] Geomorphons and extension manager<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">To whom it may concern,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">I am trying to use extension manager in grass to install geomrphons. However, I am having trouble with the extension manager(error below). I emailed the geomorphon developer Jarek Jasiewicz(See Below) and he suggest I contact the GRASS-Users
forum.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Please advise,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">-Robert Brown<o:p></o:p></p>
<div>
<p class="MsoNormal"><br>
<br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal"><b><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif"">From:
</span></b><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif"">JASIEWICZ Jarosław <<a href="mailto:jarekj@amu.edu.pl">jarekj@amu.edu.pl</a>></span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif"">Subject: Re: Geomorphons</span></b><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif"">Date:
</span></b><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif"">February 26, 2013 11:56:20 AM EST</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><b><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif"">To:
</span></b><span style="font-size:13.5pt;font-family:"Helvetica","sans-serif""><a href="mailto:brown782@purdue.edu">brown782@purdue.edu</a></span><o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On 02/26/2013 05:21 PM, <a href="mailto:brown782@purdue.edu">
brown782@purdue.edu</a> wrote:<br>
<br>
<o:p></o:p></p>
<p class="MsoNormal">Dear Sir,<br>
<br>
I use grass on my Mac OS X 10.8.2. I have been trying to compile grass to install the add-on Geomorphons. However, it is overwhelming to compile grass from source code as I have very little experience compiling programs. When I saw that your Geomorphons algorithm
was part of the grass 7.0 add-ons I was pleased and tried to use the extension manager to add it to my grass add-on repository, however, I get an several errors which I have posted below. Any Suggestions?<br>
#####################<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">g.extension extension=r.geomorphon/ operation=add<br>
Fetching <r.geomorphon/> from GRASS-Addons SVN (be patient)...<br>
Compiling...<br>
In file included from geom.c:1:<br>
local_proto.h:1:20: error: stdlib.h: No such file or<br>
directory<br>
local_proto.h:2:20: error: string.h: No such file or<br>
directory<br>
local_proto.h:3:18: error: math.h: No such file or directory<br>
local_proto.h:4:27: error: grass/glocale.h: No such file or<br>
directory<br>
local_proto.h:5:23: error: grass/gis.h: No such file or<br>
directory<br>
local_proto.h:6:26: error: grass/raster.h: No such file or<br>
directory<br>
In file included from geom.c:1:<br>
local_proto.h:56: error: expected specifier-qualifier-list<br>
before 'RASTER_MAP_TYPE'<br>
local_proto.h:66: error: expected specifier-qualifier-list<br>
before 'RASTER_MAP_TYPE'<br>
local_proto.h:74: error: expected specifier-qualifier-list<br>
before 'CELL'<br>
local_proto.h:139: error: expected declaration specifiers or<br>
'...' before 'RASTER_MAP_TYPE'<br>
local_proto.h:140: error: expected ')' before '*' token<br>
geom.c: In function 'exposition':<br>
geom.c:146: warning: incompatible implicit declaration of<br>
built-in function 'fabs'<br>
geom.c: In function 'extends':<br>
geom.c:206: warning: incompatible implicit declaration of<br>
built-in function 'fabs'<br>
geom.c: In function 'shape':<br>
geom.c:232: warning: incompatible implicit declaration of<br>
built-in function 'atan'<br>
geom.c:236: warning: incompatible implicit declaration of<br>
built-in function 'sin'<br>
geom.c:237: warning: incompatible implicit declaration of<br>
built-in function 'cos'<br>
In file included from geom.c:1:<br>
local_proto.h:1:20: error: stdlib.h: No such file or<br>
directory<br>
local_proto.h:2:20: error: string.h: No such file or<br>
directory<br>
local_proto.h:3:18: error: math.h: No such file or directory<br>
local_proto.h:4:27: error: grass/glocale.h: No such file or<br>
directory<br>
local_proto.h:5:23: error: grass/gis.h: No such file or<br>
directory<br>
local_proto.h:6:26: error: grass/raster.h: No such file or<br>
directory<br>
In file included from geom.c:1:<br>
local_proto.h:56: error: expected specifier-qualifier-list<br>
before 'RASTER_MAP_TYPE'<br>
local_proto.h:66: error: expected specifier-qualifier-list<br>
before 'RASTER_MAP_TYPE'<br>
local_proto.h:74: error: expected specifier-qualifier-list<br>
before 'CELL'<br>
local_proto.h:139: error: expected declaration specifiers or<br>
'...' before 'RASTER_MAP_TYPE'<br>
local_proto.h:140: error: expected ')' before '*' token<br>
geom.c: In function 'exposition':<br>
geom.c:146: warning: incompatible implicit declaration of<br>
built-in function 'fabs'<br>
geom.c: In function 'extends':<br>
geom.c:206: warning: incompatible implicit declaration of<br>
built-in function 'fabs'<br>
geom.c: In function 'shape':<br>
geom.c:232: warning: incompatible implicit declaration of<br>
built-in function 'atan'<br>
geom.c:236: warning: incompatible implicit declaration of<br>
built-in function 'sin'<br>
geom.c:237: warning: incompatible implicit declaration of<br>
built-in function 'cos'<br>
lipo: can't figure out the architecture type of: /var/folder<br>
s/wc/2dv9njw93k3bfyy5ppkw022h0000gn/T//ccESKY4a.out<br>
make: *** [OBJ.x86_64-apple-darwin12.2.0/geom.o] Error 1<br>
ERROR: Compilation failed, sorry. Please check above error messages.<br>
(Tue Feb 26 09:40:18 2013) Command finished (3 sec)<br>
#############################<br>
<br>
Your help is much appreciated!<br>
<br>
Sincerely,<br>
<br>
Robert Brown<o:p></o:p></p>
</blockquote>
</div>
</blockquote>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<div>
<p class="MsoNormal">All messages comes from compiler informing you haven't installed standard librarires. This is however the issue of g.extension, which do not work well with Apple systems. Please contact grass dev team how to resolve this issue<br>
<br>
regards<br>
Jarek<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>