[GRASS5] GMSL/g3d error on OSX compile

Glynn Clements glynn.clements at virgin.net
Wed Dec 10 12:14:41 EST 2003


Kirk R. Wythers wrote:

> I'm building GRASS53 on Mac OSX. Here is my configure script:
> ./configure \
> --with-postgres-includes=/sw/include/postgresql \
> --with-postgres-libs=/sw/lib/postgresql \
> --with-gdal=/usr/local/bin/gdal-config \
> --with-includes=/sw/include \
> --with-libs=/sw/lib \
> --with-opengl-includes=/usr/X11R6/include \
> --with-readline \
> --with-proj

You also need to use the --with-glw and --with-motif switches, and
possibly the corresponding --with-*-includes= and/or --with-*-libs=
switches.

Also, you need to have both GLw and Motif installed. GLw is included
with recent versions of XFree86 (e.g. /usr/X11R6/lib/libGLwM.a), and
is also available from Mesa (http://mesa3d.sourceforge.net/).

For Motif, you could try LessTif (http://www.lesstif.org/), although I
don't know whether it will be sufficiently compatible. Commercial Unix
implementations normally include Motif; Linux users can use OpenMotif,
which is free, but only for "Open Source" operating systems.

> I'm getting an error:
> Compilation error in module: src.contrib/GMSL/g3d (ignored)
> 
> Running gmake5 on /src.contrib/GMSL/g3d/src3d/raster/ gives:
> showdspf.openGL
> #################################################################
> /Users/kirkw/tmp/grass53_exp_2003_12_06/src.contrib/GMSL/g3d/src3d/ 
> raster/r3.showdspf.openGL
>    make -f OBJ.powerpc-apple-darwin7.0.0/make.rules
> 
> gcc -I/Users/kirkw/tmp/grass53_exp_2003_12_06/src/include -I/sw/include  
> -g -O2   -I/sw/include  
> -I/Users/kirkw/tmp/grass53_exp_2003_12_06/src/libes/dspf  
> -I/Users/kirkw/tmp/grass53_exp_2003_12_06/src/libes/ogsf  
> -I/usr/X11R6/include  -I/usr/X11R6/include   -c main_ogl.c -o  
> OBJ.powerpc-apple-darwin7.0.0/main_ogl.o
> In file included from main_ogl.c:20:
> kns_defines.h:4: error: parse error before "GLXContext"

Not using --with-glw will cause this.

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




More information about the grass-dev mailing list