[GRASS-dev] Re: [GRASS GIS] #1178: WinGrass: g.extension - problem
with path to $GISBASE
GRASS GIS
trac at osgeo.org
Sun Sep 26 06:09:07 EDT 2010
#1178: WinGrass: g.extension - problem with path to $GISBASE
---------------------------------------------------------------+------------
Reporter: hellik | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.1
Component: Installation | Version: svn-releasebranch64
Keywords: wingrass, g.extension, path, installation, addons | Platform: MSWindows Vista
Cpu: x86-32 |
---------------------------------------------------------------+------------
Comment(by hellik):
Replying to [comment:2 hamish]:
> the problem is certainly on that line of the script:
>
> {{{
> make MODULE_TOPDIR="$GISBASE"
> }}}
>
> but I don't know how to fix it. (maybe g.dirseps or `sed 's/ /\\ /g'` if
Windows is detected?)
>
>
> Hamish
>
> ps- while harmlessly used a lot in the script, ${curly} brackets do not
actually protect spaces in file or path names, just variable names from
following characters which would otherwise continue the variable name, or
for readability.
I've tried it now with Grass64svn living in
C:\OSGeo4W\apps\grass\grass-6.4.1svn:
{{{
GRASS 6.4> g.extension extension=r.stream.order
which: wget: unknown command
Fetching <r.stream.order> from GRASS-Addons SVN (be patient)...
A r.stream.order\orders.png
A r.stream.order\main.c
A r.stream.order\description.html
A r.stream.order\global.h
A r.stream.order\io.c
A r.stream.order\order.c
A r.stream.order\Makefile
Checked out revision 43689.
Compiling <r.stream.order>...
test -d OBJ.i686-pc-mingw32 || mkdir -p OBJ.i686-pc-mingw32
gcc -I/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include
-I/c/OSGeo4W/a
pps/gdal-16/include -I/c/OSGeo4W/include -g -O2
-I/c/OSGeo4W/apps/gdal-16/incl
ude -I/c/OSGeo4W/include -I/c/OSGeo4W/include
-DPACKAGE=\""grassmods"\" -I
/c/osgeo4w/usr/src/grass64svn/dist.i686-pc-mingw32/include -o OBJ.i686-pc-
mingw
32/io.o -c io.c
io.c:1:27: grass/glocale.h: No such file or directory
In file included from io.c:2:
global.h:5:23: grass/gis.h: No such file or directory
global.h:6:24: grass/Vect.h: No such file or directory
global.h:7:24: grass/dbmi.h: No such file or directory
In file included from io.c:2:
global.h:80: error: syntax error before '*' token
global.h:81: error: syntax error before '*' token
global.h:93: error: syntax error before '*' token
global.h:93: warning: data definition has no type or storage class
global.h:94: error: syntax error before '*' token
global.h:94: warning: data definition has no type or storage class
io.c: In function `open_raster':
io.c:8: error: storage size of 'cellhd' isn't known
io.c:10: warning: assignment makes pointer from integer without a cast
io.c:16: error: `CELL_TYPE' undeclared (first use in this function)
io.c:16: error: (Each undeclared identifier is reported only once
io.c:16: error: for each function it appears in.)
io.c:26: error: invalid use of undefined type `struct Cell_head'
io.c:26: error: invalid use of undefined type `struct Cell_head'
io.c: In function `create_base_maps':
io.c:37: error: `CELL' undeclared (first use in this function)
io.c:37: error: `r_dirs' undeclared (first use in this function)
io.c:37: error: `r_streams' undeclared (first use in this function)
io.c:38: error: `DCELL' undeclared (first use in this function)
io.c:38: error: `r_accum' undeclared (first use in this function)
io.c:47: error: syntax error before ')' token
io.c:48: error: syntax error before ')' token
io.c:50: error: syntax error before ')' token
io.c:50: error: syntax error before ')' token
io.c:52: error: syntax error before ')' token
io.c:53: error: syntax error before ')' token
io.c:55: error: syntax error before ')' token
io.c:62: warning: assignment makes pointer from integer without a cast
io.c:63: warning: assignment makes pointer from integer without a cast
io.c:73: error: syntax error before ')' token
io.c: In function `stream_number':
io.c:120: error: `CELL' undeclared (first use in this function)
io.c:120: error: syntax error before "c_min"
io.c:121: error: storage size of 'stream_range' isn't known
io.c:124: warning: assignment makes pointer from integer without a cast
io.c:126: error: `c_min' undeclared (first use in this function)
io.c:126: error: `c_max' undeclared (first use in this function)
io.c: In function `write_maps':
io.c:136: error: `CELL' undeclared (first use in this function)
io.c:136: error: `strahler_buf' undeclared (first use in this function)
io.c:136: error: `shreeve_buf' undeclared (first use in this function)
io.c:136: error: `hack_buf' undeclared (first use in this function)
io.c:136: error: `horton_buf' undeclared (first use in this function)
io.c:136: error: `topo_buf' undeclared (first use in this function)
io.c:138: error: storage size of 'history' isn't known
io.c:142: error: `CELL_TYPE' undeclared (first use in this function)
io.c: In function `create_table':
io.c:285: error: `dbConnection' undeclared (first use in this function)
io.c:285: error: syntax error before "conn"
io.c:286: error: `dbDriver' undeclared (first use in this function)
io.c:286: error: `driver' undeclared (first use in this function)
io.c:287: error: `dbHandle' undeclared (first use in this function)
io.c:287: error: syntax error before "handle"
io.c:288: error: `dbString' undeclared (first use in this function)
io.c:334: error: `db_sql' undeclared (first use in this function)
io.c:335: error: `val_string' undeclared (first use in this function)
io.c:336: error: `table_name' undeclared (first use in this function)
io.c:337: error: `handle' undeclared (first use in this function)
io.c:341: error: `conn' undeclared (first use in this function)
io.c:383: error: `DB_OK' undeclared (first use in this function)
io.c:393: error: `DB_PRIV_SELECT' undeclared (first use in this function)
io.c:393: error: `DB_GROUP' undeclared (first use in this function)
io.c:393: error: `DB_PUBLIC' undeclared (first use in this function)
make: *** [OBJ.i686-pc-mingw32/io.o] Error 1
FEHLER: Compilation failed, sorry. Please check above error messages.
rm: cannot remove directory
`C:\\gisdata\\grassdata/wgs84gc/user1/.tmp/3648.0/r
.stream.order': Permission denied
}}}
compiling is starting, but a lot of errors (maybe r.stream.order isn't for
Grass64?)
Helmut
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1178#comment:4>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list