[GRASS-user] Geomorphons and extension manager

Hamish hamish_b at yahoo.com
Tue Feb 26 21:48:13 PST 2013


Hi,

missing function definitions added in svn with r55235 & now it builds. I'll leave the other compiler warnings for the authors to look at ...


Hamish


--- On Tue, 2/26/13, Moskovitz, Bob at DOC <Bob.Moskovitz at conservation.ca.gov> wrote:

From: Moskovitz, Bob at DOC <Bob.Moskovitz at conservation.ca.gov>
Subject: Re: [GRASS-user] Geomorphons and extension manager
To: "Robert Andrew Brown" <brown782 at purdue.edu>, "grass-user at lists.osgeo.org" <grass-user at lists.osgeo.org>
Cc: "Phillip Owens" <prowens at purdue.edu>, "jarekj at amu.edu.pl" <jarekj at amu.edu.pl>
Date: Tuesday, February 26, 2013, 3:38 PM



 
 




When I tried to compile r.geomorphon, I got the errors you see below.  I just tried g.extensions with similar results. 
   
$ make MODULE_TOPDIR=/home/bob/dev/gis/grass70 
test -d OBJ.x86_64-unknown-linux-gnu || mkdir -p OBJ.x86_64-unknown-linux-gnu 
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 
geom.c: In function ‘ternary_rotate’: 
geom.c:21:5: warning: unused variable ‘res’ [-Wunused-variable] 
geom.c: In function ‘radial2cartesian’: 
geom.c:188:21: warning: ordered comparison of pointer with integer zero [-Wextra] 
geom.c: In function ‘extends’: 
geom.c:198:37: warning: unused parameter ‘pattern_size’ [-Wunused-parameter] 
geom.c: At top level: 
geom.c:2:15: warning: ‘dirs’ defined but not used [-Wunused-variable] 
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 
main.c: In function ‘main’: 
main.c:177:2: warning: format not a string literal and no format arguments [-Wformat-security] 
main.c:198:2: warning: format not a string literal and no format arguments [-Wformat-security] 
main.c:207:2: warning: format not a string literal and no format arguments [-Wformat-security] 
main.c:213:2: warning: format not a string literal and no format arguments [-Wformat-security] 
main.c:220:3: warning: format not a string literal and no format arguments [-Wformat-security] 
main.c:234:3: warning: format not a string literal and no format arguments [-Wformat-security] 
main.c:310:8: warning: format not a string literal and no format arguments [-Wformat-security] 
main.c:366:5: error: implicit declaration of function ‘radial2cartesian’ [-Werror=implicit-function-declaration] 
main.c:401:2: error: implicit declaration of function ‘write_contrast_colors’ [-Werror=implicit-function-declaration] 
main.c:268:20: warning: unused variable ‘formC’ [-Wunused-variable] 
main.c:268:13: warning: unused variable ‘formB’ [-Wunused-variable] 
main.c:268:6: warning: unused variable ‘formA’ [-Wunused-variable] 
main.c:76:22: warning: unused variable ‘radius’ [-Wunused-variable] 
main.c:74:11: warning: unused variable ‘n’ [-Wunused-variable] 
main.c:74:8: warning: unused variable ‘j’ [-Wunused-variable] 
main.c:463:1: warning: control reaches end of non-void function [-Wreturn-type] 
cc1: some warnings being treated as errors 
make: *** [OBJ.x86_64-unknown-linux-gnu/main.o] Error 1 
   
   
   


From: grass-user-bounces at lists.osgeo.org [mailto:grass-user-bounces at lists.osgeo.org]
On Behalf Of Robert Andrew Brown

Sent: Tuesday, February 26, 2013 9:21 AM

To: grass-user at lists.osgeo.org

Cc: Phillip Owens

Subject: [GRASS-user] Geomorphons and extension manager 


   
To whom it may concern, 

   


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. 


   


Please advise, 


   


-Robert Brown 







 

From:
JASIEWICZ Jarosław <jarekj at amu.edu.pl> 


Subject: Re: Geomorphons 


Date:
February 26, 2013 11:56:20 AM EST 


To:
brown782 at purdue.edu 

   

On 02/26/2013 05:21 PM, 
brown782 at purdue.edu wrote:



 
Dear Sir,



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?

##################### 




g.extension extension=r.geomorphon/ operation=add

Fetching <r.geomorphon/> from GRASS-Addons SVN (be patient)...

Compiling...

In file included from geom.c:1:

local_proto.h:1:20: error: stdlib.h: No such file or

directory

local_proto.h:2:20: error: string.h: No such file or

directory

local_proto.h:3:18: error: math.h: No such file or directory

local_proto.h:4:27: error: grass/glocale.h: No such file or

directory

local_proto.h:5:23: error: grass/gis.h: No such file or

directory

local_proto.h:6:26: error: grass/raster.h: No such file or

directory

In file included from geom.c:1:

local_proto.h:56: error: expected specifier-qualifier-list

before 'RASTER_MAP_TYPE'

local_proto.h:66: error: expected specifier-qualifier-list

before 'RASTER_MAP_TYPE'

local_proto.h:74: error: expected specifier-qualifier-list

before 'CELL'

local_proto.h:139: error: expected declaration specifiers or

'...' before 'RASTER_MAP_TYPE'

local_proto.h:140: error: expected ')' before '*' token

geom.c: In function 'exposition':

geom.c:146: warning: incompatible implicit declaration of

built-in function 'fabs'

geom.c: In function 'extends':

geom.c:206: warning: incompatible implicit declaration of

built-in function 'fabs'

geom.c: In function 'shape':

geom.c:232: warning: incompatible implicit declaration of

built-in function 'atan'

geom.c:236: warning: incompatible implicit declaration of

built-in function 'sin'

geom.c:237: warning: incompatible implicit declaration of

built-in function 'cos'

In file included from geom.c:1:

local_proto.h:1:20: error: stdlib.h: No such file or

directory

local_proto.h:2:20: error: string.h: No such file or

directory

local_proto.h:3:18: error: math.h: No such file or directory

local_proto.h:4:27: error: grass/glocale.h: No such file or

directory

local_proto.h:5:23: error: grass/gis.h: No such file or

directory

local_proto.h:6:26: error: grass/raster.h: No such file or

directory

In file included from geom.c:1:

local_proto.h:56: error: expected specifier-qualifier-list

before 'RASTER_MAP_TYPE'

local_proto.h:66: error: expected specifier-qualifier-list

before 'RASTER_MAP_TYPE'

local_proto.h:74: error: expected specifier-qualifier-list

before 'CELL'

local_proto.h:139: error: expected declaration specifiers or

'...' before 'RASTER_MAP_TYPE'

local_proto.h:140: error: expected ')' before '*' token

geom.c: In function 'exposition':

geom.c:146: warning: incompatible implicit declaration of

built-in function 'fabs'

geom.c: In function 'extends':

geom.c:206: warning: incompatible implicit declaration of

built-in function 'fabs'

geom.c: In function 'shape':

geom.c:232: warning: incompatible implicit declaration of

built-in function 'atan'

geom.c:236: warning: incompatible implicit declaration of

built-in function 'sin'

geom.c:237: warning: incompatible implicit declaration of

built-in function 'cos'

lipo: can't figure out the architecture type of: /var/folder

s/wc/2dv9njw93k3bfyy5ppkw022h0000gn/T//ccESKY4a.out

make: *** [OBJ.x86_64-apple-darwin12.2.0/geom.o] Error 1

ERROR: Compilation failed, sorry. Please check above error messages.

(Tue Feb 26 09:40:18 2013) Command finished (3 sec)

#############################



Your help is much appreciated!



Sincerely,



Robert Brown 







 

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



regards

Jarek 


   





-----Inline Attachment Follows-----

_______________________________________________
grass-user mailing list
grass-user at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20130226/c1b8d033/attachment-0001.html>


More information about the grass-user mailing list