[GRASSLIST:2429] Re: grass53 compilation

Glynn Clements <glynn.clements@virgin.net> schrieb am 30.01.04 19:43:55:

Michele wrote:

> Hi, trying to compile grass53 i get the following errors:
>
> GRASS GIS source code compiled.
>
> Compilation error in module: src/raster/r.in.gdal (ignored)
> Compilation error in module: src.contrib/GMSL/g3d (ignored)
> Compilation error in module: src.contrib/DUKE/r.terraflow (ignored)
>
> is it due to the compiler version as the problem in grass57?
> is it possible fom me to fix this changing few parameters in the sources?

It's hard to say without seeing the actual error messages from "make".

I also get an error for src.contrib/GMSL/g3d. My system runs SuSE 8.2 with gcc 3.3.

gmake53

  SRC = /usr/local/src/grass/src
  CMD = /usr/local/src/grass/src/CMD
  UNUSED = /usr/local/src/grass/unused
  HEADER = head.i586-pc-linux-gnu
  ARCH = i586-pc-linux-gnu
  GISBASE = /usr/local/src/grass/dist.i586-pc-linux-gnu
  VERSION = 5.3-cvs 2003
#################
/usr/local/src/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL
  make -f OBJ.i586-pc-linux-gnu/make.rules

gcc -I/usr/local/src/grass/src/include -march=i586 -O2 -I/usr/local/src/grass/src/libes/dspf -I/usr/local/src/grass/src/libes/ogsf -I/usr/X11R6/include -c main_ogl.c -o OBJ.i586-pc-linux-gnu/main_ogl.o
In file included from main_ogl.c:20:
kns_defines.h:4: error: parse error before "GLXContext"
kns_defines.h:4: warning: no semicolon at end of struct or union
kns_defines.h:13: error: parse error before '}' token
kns_defines.h:13: warning: data definition has no type or storage class
In file included from main_ogl.c:21:
kns_globals.h:11: error: parse error before "MainOGLWindow"
kns_globals.h:11: warning: data definition has no type or storage class
kns_globals.h:12: error: parse error before "ColormapWindow"
kns_globals.h:12: warning: data definition has no type or storage class
main_ogl.c: In function `main':
main_ogl.c:131: warning: passing arg 1 of `G3d_setErrorFun' from incompatible pointer type
make: *** [OBJ.i586-pc-linux-gnu/main_ogl.o] Error 1

Wolfgang
______________________________________________________________________________
Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den
Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php

Wolfgang von Hansen wrote:

> > Hi, trying to compile grass53 i get the following errors:
> >
> > GRASS GIS source code compiled.
> >
> > Compilation error in module: src/raster/r.in.gdal (ignored)
> > Compilation error in module: src.contrib/GMSL/g3d (ignored)
> > Compilation error in module: src.contrib/DUKE/r.terraflow (ignored)
> >
> > is it due to the compiler version as the problem in grass57?
> > is it possible fom me to fix this changing few parameters in the sources?
>
> It's hard to say without seeing the actual error messages from "make".

I also get an error for src.contrib/GMSL/g3d. My system runs SuSE
8.2 with gcc 3.3.

/usr/local/src/grass/src.contrib/GMSL/g3d/src3d/raster/r3.showdspf.openGL
  make -f OBJ.i586-pc-linux-gnu/make.rules

gcc -I/usr/local/src/grass/src/include -march=i586 -O2 -I/usr/local/src/grass/src/libes/dspf -I/usr/local/src/grass/src/libes/ogsf -I/usr/X11R6/include -c main_ogl.c -o OBJ.i586-pc-linux-gnu/main_ogl.o
In file included from main_ogl.c:20:
kns_defines.h:4: error: parse error before "GLXContext"

Right. r3.showdspf.openGL will fail to compile if you don't use the
--with-glw configure switch; but if you do use that switch, configure
will fail if you don't have both Motif and the GLw library.

Essentially, it should only attempt to compile r3.showdspf.openGL if
you use --with-glw, but at present it is being compiled
unconditionally.

Unless you actually need r3.showdspf.openGL, just ignore the error.

--
Glynn Clements <glynn.clements@virgin.net>