/Hi - I am trying to compile the weekly snapshot 2010-09-04 on Windows XP so that I can access the r.univar.zonal addon. I get a message that there is an error with g.region. I tried "make" in the g.region directory and here are the errors I got:
--
$ make
gcc -I/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2010_09_04/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/c/OSGeo4W/include -I/osgeo4w/usr/src/grass-6.4.svn_src_snapshot_2010_09_04/dist.i686-pc-mingw32/include -o OBJ.i686-pc-mingw32/printwindow.o -c printwindow.c
In file included from c:/OSGeo4W/include/projects.h:324,
                 from printwindow.c:3:
c:/OSGeo4W/include/proj_api.h:61: error: syntax error before '*' token
c:/OSGeo4W/include/proj_api.h:61: warning: data definition has no type or storage class
c:/OSGeo4W/include/proj_api.h:82: error: syntax error before "const"
c:/OSGeo4W/include/proj_api.h:94: error: syntax error before "int"
c:/OSGeo4W/include/proj_api.h:95: error: syntax error before "const"
c:/OSGeo4W/include/proj_api.h:107: error: syntax error before "pj_get_default_ctx" c:/OSGeo4W/include/proj_api.h:107: warning: data definition has no type or storage class
c:/OSGeo4W/include/proj_api.h:108: error: syntax error before "pj_get_ctx"
c:/OSGeo4W/include/proj_api.h:108: warning: data definition has no type or storage class
c:/OSGeo4W/include/proj_api.h:109: error: syntax error before "projCtx"
c:/OSGeo4W/include/proj_api.h:110: error: syntax error before "pj_ctx_alloc" c:/OSGeo4W/include/proj_api.h:110: warning: data definition has no type or storage class c:/OSGeo4W/include/proj_api.h:111: warning: parameter names (without types) in function declaration c:/OSGeo4W/include/proj_api.h:112: warning: parameter names (without types) in function declaration
c:/OSGeo4W/include/proj_api.h:113: error: syntax error before "int"
c:/OSGeo4W/include/proj_api.h:114: error: syntax error before "int"
c:/OSGeo4W/include/proj_api.h:115: error: syntax error before "void"
c:/OSGeo4W/include/proj_api.h:115: error: syntax error before ')' token
c:/OSGeo4W/include/proj_api.h:116: error: syntax error before "void"
c:/OSGeo4W/include/proj_api.h:117: warning: parameter names (without types) in function declaration
c:/OSGeo4W/include/proj_api.h:119: error: syntax error before "ctx"
make: *** [OBJ.i686-pc-mingw32/printwindow.o] Error 1
--

Does this look like an error with g.region or a user problem? I am not experienced with MinGW and am probably in over my head but I've been following the excellent instructions provided on the CompileOnWindows Wiki page to install the snapshot version of GRASS.

The reason I'm doing all this is to have access to the r.univar.zonal addon. Is there an easier way to access this addon when using Windows? I'm preparing for a workshop and would like to have this capability for an object based image classification exercise and I have to use Windows XP computers.

Any help will be appreciated.

All the best,

Ned
/
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to