[GRASS-windows] GRASS add-ons for Windows users

Olivier Vannier olivier.vannier at hmg.inpg.fr
Tue Apr 13 10:32:01 EDT 2010


Hi all,

I'm quite new in using GRASS, and I need to install some GRASS add-ons 
(r.stream.*). I'm afraid it will not be easy for the poor winGRASS user 
I am ! I'm using GRASS 6.4 (installed with OSGeo4w), and I recently 
installed GRASS 7.0 "standalone" (I even made some tests with GRASS 
6.5). All this on Windows XP Pro (32 bit).

Since my compilation attempts using MSys failed, I looked this 
discussion archive. I read Antonio Rocha's previous messages, espacially 
the one on compiling r.example with GRASS 6.4, but I didn't get the 
ending of the discussion : Did you finally achieve your quest Antonio ? 
If yes I'm really interested in following you in the compilation adventure !

If no, what is the solution for Windows users willing to use add-ons ? I 
thought that the new module g.extension could help us, but :

- It is currently not yet operationnal on GRASS 7.0 ? (nothing occurs 
when typing "g.extension" in the command line) ;

- It leads to the following error message on GRASS 6.5 :

g.extension extension=r.stream.basins 
svnurl=https://svn.osgeo.org/grass/grass-addons/ prefix=C:/GRASS-65-SVN/
which: wget: unknown command
Fetching <r.stream.basins> from GRASS-Addons SVN (be patient)...
A r.stream.basins\main.c
A r.stream.basins\description.html
A r.stream.basins\global.h
A r.stream.basins\catchment.c
A r.stream.basins\io.c
A r.stream.basins\Makefile
R‚vision 41835 extraite.
mkdir -p /osgeo4w/usr/src/grass6_devel/bin.i686-pc-mingw32
Compiling r.stream.basins...
C:/GRASS-65-SVN/include/Make/Module.make:25: warning:
overriding commands for target `install'
C:/GRASS-65-SVN/include/Make/Rules.make:82: warning:
ignoring old commands for target `install'
mkdir -p /osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include/grass
mkdir -p /osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/lib
mkdir -p /osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/bin
mkdir -p /osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/etc
mkdir -p /osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/driver
mkdir -p /osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/driver/db
mkdir -p /osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/fonts
test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32
gcc.exe: installation problem, cannot exec `cc1': No such
file or directory
make: *** [OBJ.i686-pc-mingw32/catchment.o] Error 1
gcc -I/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include 
-I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include -g -O2 
-I/c/OSGeo4W/apps/gdal-16/include -I/c/OSGeo4W/include 
-I/c/OSGeo4W/include -DPACKAGE=\""grassmods"\" 
-I/osgeo4w/usr/src/grass6_devel/dist.i686-pc-mingw32/include -o 
OBJ.i686-pc-mingw32/catchment.o -c catchment.c
ERROR: Compilation failed, sorry. Please check above error messages.

Is the problem fixable ? Or should I better forget about installing 
GRASS add-ons on my Windows machine ?

Thanks.

Best regards.
Olivier Vannier




More information about the grass-windows mailing list