[GRASS-user] g.extension lipo problem
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)... Ai.landsat.toar/landsat_set.c Ai.landsat.toar/local_proto.h Ai.landsat.toar/main.c Ai.landsat.toar/description.html Ai.landsat.toar/landsat.c Ai.landsat.toar/earth_sun.c Ai.landsat.toar/landsat.h Ai.landsat.toar/landsat_met.c Ai.landsat.toar/Makefile Ai.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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] g.extension lipo problem
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)... Ai.landsat.toar/landsat_set.c Ai.landsat.toar/local_proto.h Ai.landsat.toar/main.c Ai.landsat.toar/description.html Ai.landsat.toar/landsat.c Ai.landsat.toar/earth_sun.c Ai.landsat.toar/landsat.h Ai.landsat.toar/landsat_met.c Ai.landsat.toar/Makefile Ai.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@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 ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] g.extension lipo problem
On Thu, May 5, 2011 at 2:09 AM, William Kyngesburye wokl...@kyngchaos.com wrote: Known issue - g.extension doesn't work on a Mac (or other systems?) without the original compiled source. There is positive feedback about the extension manager which has been integrated into wxGUI. The person used it on Windows: http://gis.stackexchange.com/questions/9259/win7-grass-7-i-landsat-toar/9276#9276 Please try it also on MacOSX (requires 6.4.svn). Markus ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
[GRASS-user] g.extension lipo problem
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)... Ai.landsat.toar/landsat_set.c Ai.landsat.toar/local_proto.h Ai.landsat.toar/main.c Ai.landsat.toar/description.html Ai.landsat.toar/landsat.c Ai.landsat.toar/earth_sun.c Ai.landsat.toar/landsat.h Ai.landsat.toar/landsat_met.c Ai.landsat.toar/Makefile Ai.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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] g.extension lipo problem
Known issue - g.extension doesn't work on a Mac (or other systems?) without the original compiled source. I have a modbuild in /Library/GRASS/6.4, see the readme there for details. One aditional thing to do before using it is copy all the static *.a libraries from the GRASS application (/Applications/GRASS-6.4.app/Contents/MacOS/lib) to the modbuild/Modules/lib folder. Note that modbuild does not install the module, just compiles it, you must do that manually. You will also need to download the addon source manually. This should do it (do it in the modbuild/module) folder): svn co https://svn.osgeo.org/grass/grass-addons/[moduleclass]/[module] [module] where [moduleclass] is the named type of module (from the first dotted part of the module name, ie imagery for i, and [module] is the full module name, ie i.landsat.toar. 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)... Ai.landsat.toar/landsat_set.c Ai.landsat.toar/local_proto.h Ai.landsat.toar/main.c Ai.landsat.toar/description.html Ai.landsat.toar/landsat.c Ai.landsat.toar/earth_sun.c Ai.landsat.toar/landsat.h Ai.landsat.toar/landsat_met.c Ai.landsat.toar/Makefile Ai.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@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user - William Kyngesburye kyngchaos*at*kyngchaos*dot*com http://www.kyngchaos.com/ Earth: Mostly harmless - revised entry in the HitchHiker's Guide to the Galaxy ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user