[GRASS-user] Compiling winGRASS with OSGEO4w- #3

António Rocha antonio.rocha at deimos.com.pt
Tue Jun 15 07:11:49 EDT 2010


Greetings

Since Luisa and few others are posting regarding this topic I decided to 
perform this compilation of GRASS on MS-WINDOWs and I followed the exact 
steps but made a few updates in Libraries.
MsysCORE- 1.0.14-1
bin-utils 2.20.51-1
mingw-make 3.81-20090910 (newer version)
mingw-utils 0.4-1
w32api 3.14

and
Bison 2.4.1

Instead of compiling a weekly snapshot I choose RC6 version. But I got 
some errors like thiese oens:
      0 [main] sh 2008 open_stackdumpfile: Dumping stack trace to 
sh.exe.stackdump
      0 [main] sh 1248 open_stackdumpfile: Dumping stack trace to 
sh.exe.stackdump

checking host system type...       0 [main] sh 1264 open_stackdumpfile: 
Dumping stack trace to sh.exe.stackdump

checking for source directory...       0 [main] sh 1848 
open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

checking for termios.h... ./configure: line 4110:   224 Segmentation 
fault      (core dumped) ( eval $ac_try ) 2>&5
grep: conftest.out: No such file or directory

checking for f2c.h...       0 [main] sh 2020 open_stackdumpfile: Dumping 
stack trace to sh.exe.stackdump

checking for sys/timeb.h... yes
0 [main] sh 3868 open_stackdumpfile: Dumping stack trace to sh.exe.stackdump

checking for socket... no
checking for socket in -lsocket... configure: warning: *** Unable to 
locate socket() function.
no

*And the final error was this (which terminated the process)*
checking for location of PostgreSQL library...
checking for PQsetdbLogin in -lpq... ./configure: line 9206:  3856 
Segmentation fault      (core dumped) ( eval $ac_link ) 2>&5
no
checking for PQsetdbLogin in -lpq... no
checking for PQsetdbLogin in -lpq... no
checking for PQsetdbLogin in -lpq... configure: error: *** Unable to 
locate PostgreSQL library.
no
*Then I reinstalled postgres from osgeo4w and FFTW-devel (in a previous 
run I had an error with missing fftw-devel)*

After that I got an error in
checking for Tcl_Init in -ltclUNKNOWN... configure: error: *** Unable to 
locate Tcl library.
no
*I had to reinstall tcltk usiong osgeo4w.*

Then:
checking for location of External PROJ.4 includes...
checking for proj_api.h... ./configure: line 7069:  2916 Segmentation 
fault      (core dumped) ( eval $ac_try ) 2>&5
grep: conftest.out: No such file or directory
yes
checking External PROJ.4 version... ./configure: line 7120:  3712 
Segmentation fault      (core dumped) ( ./conftest; exit ) 2>/dev/null
configure: error: *** Could not determine External PROJ.4 version.
*I had to reinstall proj4 using osgeo4w*

After that it compiled with the following errors (installation log at: 
http://pastebin.com/qvgwE7iP):
Errors in:
/osgeo4w/usr/src/grass-6.4.0RC6/lib/db/sqlp
/osgeo4w/usr/src/grass-6.4.0RC6/lib/gpde
/osgeo4w/usr/src/grass-6.4.0RC6/lib/ogsf
/osgeo4w/usr/src/grass-6.4.0RC6/lib/nviz
/osgeo4w/usr/src/grass-6.4.0RC6/db/drivers/dbf
/osgeo4w/usr/src/grass-6.4.0RC6/db/drivers/postgres
/osgeo4w/usr/src/grass-6.4.0RC6/db/drivers/ogr
/osgeo4w/usr/src/grass-6.4.0RC6/display/d.grid
/osgeo4w/usr/src/grass-6.4.0RC6/display/d.where
/osgeo4w/usr/src/grass-6.4.0RC6/general/g.mremove
/osgeo4w/usr/src/grass-6.4.0RC6/general/g.proj
/osgeo4w/usr/src/grass-6.4.0RC6/general/g.region
/osgeo4w/usr/src/grass-6.4.0RC6/general/g.setproj
/osgeo4w/usr/src/grass-6.4.0RC6/general/manage/cmd
/osgeo4w/usr/src/grass-6.4.0RC6/ps/ps.map
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.external
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.gwflow
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.horizon
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.los
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.mapcalc
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.proj.seg
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.sun2
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.sunmask
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.to.rast3
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.to.rast3elev
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.univar2
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.in.gdal
/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.out.gdal
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.cross.rast
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.in.ascii
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.in.v5d
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.gwflow
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.mkdspf
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.out.ascii
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.out.v5d
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.out.vtk
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.stats
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/r3.to.rast
/osgeo4w/usr/src/grass-6.4.0RC6/raster3d/base
/osgeo4w/usr/src/grass-6.4.0RC6/vector/v.proj
/osgeo4w/usr/src/grass-6.4.0RC6/vector/v.to.rast3
/osgeo4w/usr/src/grass-6.4.0RC6/vector/v.vol.rst
/osgeo4w/usr/src/grass-6.4.0RC6/vector/v.out.ogr
/osgeo4w/usr/src/grass-6.4.0RC6/vector/v.in.ogr
/osgeo4w/usr/src/grass-6.4.0RC6/visualization/nviz
/osgeo4w/usr/src/grass-6.4.0RC6/visualization/nviz2/cmd

To check the errors I went to /raster/r.in.gdal and run make  and I got:
make: *** No rule to make target 
`/osgeo4w/usr/src/grass-6.4.0RC6/dist.i686-pc-mingw32/lib/libgrass_gproj.dll', 
needed by 
`/osgeo4w/usr/src/grass-6.4.0RC6/dist.i686-pc-mingw32/bin/r.in.gdal.exe'.  
Stop.

and if I do at r.mapcalc I get:
bison -y -b y -d mapcalc.y
c:\osgeo4w/share/bison/yacc.c:158: m4: Warning: Excess arguments to 
built-in `_m4_popdef' ignored
c:\osgeo4w/share/bison/yacc.c:1071: m4: Warning: Excess arguments to 
built-in `_m4_popdef' ignored
NONE:0: m4: ERROR: EOF in string
make OBJ.i686-pc-mingw32
make[1]: Entering directory 
`/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.mapcalc'
make[1]: `OBJ.i686-pc-mingw32' is up to date.
make[1]: Leaving directory 
`/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.mapcalc'
gcc -I/osgeo4w/usr/src/grass-6.4.0RC6/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     
-DPACKAGE=\""grassmods"\"  
-I/osgeo4w/usr/src/grass-6.4.0RC6/dist.i686-pc-mingw32/include -o 
OBJ.i686-pc-mingw32/y.tab.o -c y.tab.c
flex -t mapcalc.l > lex.yy.c
make OBJ.i686-pc-mingw32
make[1]: Entering directory 
`/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.mapcalc'
make[1]: `OBJ.i686-pc-mingw32' is up to date.
make[1]: Leaving directory 
`/osgeo4w/usr/src/grass-6.4.0RC6/raster/r.mapcalc'
gcc -I/osgeo4w/usr/src/grass-6.4.0RC6/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     
-DPACKAGE=\""grassmods"\"  
-I/osgeo4w/usr/src/grass-6.4.0RC6/dist.i686-pc-mingw32/include -o 
OBJ.i686-pc-mingw32/lex.yy.o -c lex.yy.c
mapcalc.l:18:19: y.tab.h: No such file or directory
mapcalc.l: In function `yylex':
mapcalc.l:111: error: `yylval' undeclared (first use in this function)
mapcalc.l:111: error: (Each undeclared identifier is reported only once
mapcalc.l:111: error: for each function it appears in.)
mapcalc.l:112: error: `FLOAT' undeclared (first use in this function)
mapcalc.l:118: error: `DOUBLE' undeclared (first use in this function)
mapcalc.l:131: error: `INTEGER' undeclared (first use in this function)
mapcalc.l:141: error: `VARNAME' undeclared (first use in this function)
mapcalc.l:141: error: `NAME' undeclared (first use in this function)
mapcalc.l:148: error: `VARSTRING' undeclared (first use in this function)
mapcalc.l:148: error: `STRING' undeclared (first use in this function)
mapcalc.l:167: error: `LOGAND2' undeclared (first use in this function)
mapcalc.l:168: error: `LOGAND' undeclared (first use in this function)
mapcalc.l:169: error: `BITAND' undeclared (first use in this function)
mapcalc.l:171: error: `LOGOR2' undeclared (first use in this function)
mapcalc.l:172: error: `LOGOR' undeclared (first use in this function)
mapcalc.l:173: error: `BITOR' undeclared (first use in this function)
mapcalc.l:175: error: `LSH' undeclared (first use in this function)
mapcalc.l:176: error: `RSHU' undeclared (first use in this function)
mapcalc.l:177: error: `RSH' undeclared (first use in this function)
mapcalc.l:179: error: `GT' undeclared (first use in this function)
mapcalc.l:180: error: `GE' undeclared (first use in this function)
mapcalc.l:181: error: `LT' undeclared (first use in this function)
mapcalc.l:182: error: `LE' undeclared (first use in this function)
mapcalc.l:184: error: `EQ' undeclared (first use in this function)
mapcalc.l:185: error: `NE' undeclared (first use in this function)
make: *** [OBJ.i686-pc-mingw32/lex.yy.o] Error 1

- What can I do to fix this errors?

- Please, if someone has OSGEO4W installation, can someone provide me 
the versions of pre-built binaties and minGWpackages because I can't 
compile in MS-Windows and I really need it


Thanks
Antonio



__________ Information from ESET NOD32 Antivirus, version of virus signature database 5197 (20100615) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




More information about the grass-user mailing list