[GRASS-user] troubles installing r.fuzzy.system add-on on Mac OSX (GRASS 6.4.1)

William Kyngesburye woklist at kyngchaos.com
Wed Aug 17 19:46:08 EDT 2011


I'm not sure how well g.extension works in GRASS 6.4.  Alternatively, I still include the modbuild hack.  See the readme in /Library/GRASS/6.4/modbuild, it's a little different than your brute force attempt.

On Aug 16, 2011, at 11:08 AM, <Guillaume.Duclaux at csiro.au> <Guillaume.Duclaux at csiro.au> wrote:

> Hi GRASS gurus,
> 
> I've been trying to install the r.fuzzy.system add-on to my GRASS' local copy (Mac OSX 10.6.8, binary installed from: http://www.kyngchaos.com/software/grass - thanks for the installer btw!).
> 
> Unfortunately I had no luck with compiling and installing the add-on yet.
> I've tried 2 approaches:
> * the g.extension add-on manager
> * and brutal force (svn co + make)
> See details below.
> 
...
> Then, in a terminal, after checking out the source files for the r.fuzzy.system add-on from svn, got the following errors:
> 
> GRASS 6.4.1 (newLocation):~/grass/fuzzySystem/r.fuzzy.system > make MODULE_TOPDIR=/Applications/GRASS-6.4.app/Contents/MacOS/
> test -d OBJ.i386-apple-darwin10.7.0 || mkdir -p OBJ.i386-apple-darwin10.7.0
> gcc -I/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/include  -Os -fexceptions   -arch i386 -arch x86_64      -DPACKAGE=\""grassmods"\"  -I/Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/include -o OBJ.i386-apple-darwin10.7.0/fuzzylogic.o -c fuzzylogic.c
> In file included from fuzzylogic.c:1:
> local_proto.h:5:23: error: grass/gis.h: No such file or directory
> local_proto.h:6:27: error: grass/glocale.h: No such file or directory
> In file included from fuzzylogic.c:1:
> local_proto.h:106: error: expected specifier-qualifier-list before ‘RASTER_MAP_TYPE’
> local_proto.h:116: error: expected specifier-qualifier-list before ‘DCELL’
> local_proto.h:136: error: expected specifier-qualifier-list before ‘FCELL’
> local_proto.h:185: error: expected ‘)’ before ‘cell’
> fuzzylogic.c:3: error: expected ‘)’ before ‘cell’
> In file included from fuzzylogic.c:1:
> local_proto.h:5:23: error: grass/gis.h: No such file or directory
> local_proto.h:6:27: error: grass/glocale.h: No such file or directory
> In file included from fuzzylogic.c:1:
> local_proto.h:106: error: expected specifier-qualifier-list before ‘RASTER_MAP_TYPE’
> local_proto.h:116: error: expected specifier-qualifier-list before ‘DCELL’
> local_proto.h:136: error: expected specifier-qualifier-list before ‘FCELL’
> local_proto.h:185: error: expected ‘)’ before ‘cell’
> fuzzylogic.c:3: error: expected ‘)’ before ‘cell’
> lipo: can't figure out the architecture type of: /var/folders/F1/F1w0tzFYEbiJcYgLf9+Mh++++TI/-Tmp-//cchVfFcE.out
> make: *** [OBJ.i386-apple-darwin10.7.0/fuzzylogic.o] Error 1
> 
> 
> I found a few posts that seem to highlight similar issues on various architectures: http://trac.osgeo.org/grass/ticket/620, http://comments.gmane.org/gmane.comp.gis.grass.user/39745
> But I didn't find the solution.
> 
> Hopefully someone will be able to help me here... I'm kind of stuck!
> 
> Cheers
> 
> Guillaume

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

Theory of the Universe

There is a theory which states that if ever anyone discovers exactly what the universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarrely inexplicable.  There is another theory which states that this has already happened.

-Hitchhiker's Guide to the Galaxy 2nd season intro




More information about the grass-user mailing list