[GRASS-user] g.extension lipo problem

William Kyngesburye woklist at kyngchaos.com
Wed May 11 23:39:43 EDT 2011


I updated the package (6.4.1-2) to include recent fixes that let g.extension work.

No need for hacks or modbuild.

On May 11, 2011, at 7:17 PM, Gaspar Reyes Póndigo wrote:

> 
> I had the same problem and I solved it as follows.
> 
> My computer is 
> MAC Os X Snow Leopard 10.6.7
> Macbook
> Grass GIS 6.4.1
>  
> COPY FROM TERMINAL
> 
> $ sudo cp -r  /Applications/GRASS-6.4.app/Contents/MacOS/include/grass/ /Users/Shared/src/GRASS/grass-6.4.1-snow/dist.i386-apple-darwin10.7.0/include/grass # For error gis.h
> $ sudo cp -r  /Library/GRASS/6.4/modbuild/tools/  /Users/Shared/src/GRASS/grass-6.4.1-snow/tools # for error g.html2man
> $ sudo mkdir /Applications/GRASS-6.4.app/Contents/MacOS/tools
> $ sudo cp  /Library/GRASS/6.4/modbuild/tools/mkhtml.sh /Applications/GRASS-6.4.app/Contents/MacOS/tools  # for error mkhtml.sh
> 
> 
> AFTER AGAIN TO INSTALL TO EXTENSION, OK
> 
> g.extension ETC ETC.
> 
> Tell me your result, ok
> 
> On May 4, 2011, at 1:11 PM, Jason Lessels wrote:
> 
> >
>  Hi,
> 
> >
>  I am running os x snow leopard (10.6.7). I have tried to install an extension in GRASS 6.4.1 (2011), but it throws a compilation error. I have searched the lists, with no luck, could anyone help me with this problem.
> 
> >
>  Thanks
> 
> >
>  Jason
> 
> >
>  
> 
> >
>  g.extension extension=i.landsat.toar
> 
> >
>  Fetching <i.landsat.toar> from GRASS-Addons SVN (be patient)...
> 
> >
>  A    i.landsat.toar/landsat_set.c
> 
> >
>  A    i.landsat.toar/local_proto.h
> 
> >
>  A    i.landsat.toar/main.c
> 
> >
>  A    i.landsat.toar/description.html
> 
> >
>  A    i.landsat.toar/landsat.c
> 
> >
>  A    i.landsat.toar/earth_sun.c
> 
> >
>  A    i.landsat.toar/landsat.h
> 
> >
>  A    i.landsat.toar/landsat_met.c
> 
> >
>  A    i.landsat.toar/Makefile
> 
> >
>  A    i.landsat.toar/earth_sun.h
> 
> >
>  U   i.landsat.toar
> 
> >
>  Checked out revision 46186.
> 
> >
>  Compiling <i.landsat.toar>...
> 
> >
>  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/earth_sun.o -c earth_sun.c
> 
> >
>  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/landsat.o -c landsat.c
> 
> >
>  landsat.c:4:23: error: grass/gis.h: No such file or directory
> 
> >
>  landsat.c:4:23: error: grass/gis.h: No such file or directory
> 
> >
>  lipo: can't figure out the architecture type of: /Users/jasonlessels/git/muttama/gis/muttama/muttama/.tmp/macintosh-3.localdomain/29713.0/ccdiXykN.out
> 
> >
>  make: *** [OBJ.i386-apple-darwin10.7.0/landsat.o] Error 1
> 
> >
>  ERROR: Compilation failed, sorry. Please check above error messages._______________________________________________
> 
> >
>  grass-user mailing list
> 
> > grass-user at lists.osgeo.org
> > http://lists.osgeo.org/mailman/listinfo/grass-user
> 
> 
> 
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user

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

"This is a question about the past, is it? ... How can I tell that the past isn't a fiction designed to account for the discrepancy between my immediate physical sensations and my state of mind?"

- The Ruler of the Universe




More information about the grass-user mailing list