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

Markus Neteler neteler at osgeo.org
Sun Apr 18 15:52:18 EDT 2010


On Tue, Apr 13, 2010 at 4:32 PM, Olivier Vannier
<olivier.vannier at hmg.inpg.fr> wrote:
> 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 !

[did he post in this list? Perhaps he's not subscribed here]

> 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 is not quite operational for Windows in 6.x. In GRASS 7, it has been
rewritten in Python (I still vote for backport) with the hope that it is
portable.

> - 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

Using my preferred search engine, I found quite some results.
Perhaps you can take a look, it looks like a (local) MinGW problem
to be solved before trying to compile Addons.

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

Please don't (yet) :-)

Markus


More information about the grass-windows mailing list